Fix TypeScript definitions for createRef() (#1281)
Fix TypeScript definitions for createRef() (#1281)

* Declare function createRef() on preact TS definitions

* Create type RefObject as `createRef` return type

* Add RefCallback and change Ref type implementation

developit/preact,developit/preact