-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[No QA][TS migration] Migrate 'react-native-key-command.js' mock to TypeScript #35411
Changes from 4 commits
47efc87
14351ba
1ecde6c
367222b
0f2dec0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import type {addListener as _addListener, constants as _constants} from 'react-native-key-command'; | ||
|
||
const registerKeyCommands = () => {}; | ||
const unregisterKeyCommands = () => {}; | ||
Comment on lines
+3
to
+4
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What about these functions? Should we add them to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, let's add them to |
||
const constants: Partial<typeof _constants> = {}; | ||
const eventEmitter = () => {}; | ||
const addListener: typeof _addListener = () => () => {}; | ||
|
||
export {addListener, constants, eventEmitter, registerKeyCommands, unregisterKeyCommands}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about following this model for this PR too? A
ReactNativeKeyCommandMock
type, etc..There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We cant do that , refactoring to that make that tests are failing