This repository has been archived by the owner on Feb 6, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Null return value type in code example (#2429)
Summary: **Summary** TypeScript threw this error when I attempted to copy and paste in my code: ``` Type 'null' is not assignable to type 'string'.ts(2322) ``` The `getDefaultKeyBinding()` method may return null. So I added `| null` to the return type declaration. Just thought it would help others who may also be copying/pasting the code! **Test Plan** No testing required. Pull Request resolved: #2429 Reviewed By: kedromelon Differential Revision: D21652264 Pulled By: mrkev fbshipit-source-id: c820028da1ec6eb17055aceb5a751f7d01636b83
- Loading branch information