Commit Graph

4 Commits

Author SHA1 Message Date
Yale Cason III
214653678c Update Draft-js types so that convertFromHTML example typechecks (#16542)
* Update Draft-js types so that https://github.com/facebook/draft-js/blob/master/examples/draft-0-10-0/convertFromHTML/convert.html typechecks.

* Fix bad merge

* Fix bad fix for bad merge
2017-06-05 13:41:59 -07:00
Ryan Schwers
d28f34da92 [Draft-js] Support custom keyBindingFN strings
The current typings don't work for custom keyBindingFn
return values. keyBindingFn implementations may return
any string or null. TypeScript's handling of string unions is
preventing the fn type definition overloading from working
as intended. This change removes overloading and moves
the union to a type, and adds nullability to the type definition.
2017-05-16 15:10:22 -07:00
Xiang Gao
68a96ccab0 update draft-js.d.ts (#16033)
* update draft-js.d.ts

export as namespace Draft;

* fix typo
2017-04-21 10:33:00 -07:00
Andy Hanson
354cec620d Move all packages to a types directory 2017-03-24 14:27:52 -07:00