mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
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. |
||
|---|---|---|
| .. | ||
| draft-js-tests.tsx | ||
| index.d.ts | ||
| package.json | ||
| tsconfig.json | ||