-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Road to implicitAny part 4 #4497
Conversation
@guyca Thx for merging my last PR so quickly! Here is next follow up :D |
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.
Looks great @henrikra !! I noticed that a few unneeded comma character have been added, can you please delete them?
@@ -7,22 +7,24 @@ import { | |||
SearchBarUpdatedEvent, | |||
SearchBarCancelPressedEvent, | |||
PreviewCompletedEvent, | |||
ModalDismissedEvent | |||
ModalDismissedEvent, |
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.
Can we avoid adding comma character where it's avoidable?
@@ -31,39 +33,57 @@ export class NativeEventsReceiver { | |||
return this.emitter.addListener('RNN.AppLaunched', callback); | |||
} | |||
|
|||
public registerComponentDidAppearListener(callback: (event: ComponentDidAppearEvent) => void): EventSubscription { | |||
public registerComponentDidAppearListener( |
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.
Lets return these method declarations to single line - I think it's readable enough in a single line.
I have now done the changes you requested :) |
What is this? This PR continues the work on making this project type safe with TypeScript. Goal is that the flag noImplicitAny will be set to true What this PR does? * all files inside adapter folder is valid for noImplicitAny! * resolveAssetSource is now imported from the current place where it should. Previously it was imported from legacy location. More info here: https://facebook.github.io/react-native/docs/image#resolveassetsource * formatted many files * add missing interfaces * fix onPressIn prop on TouchablePreview What's next? Next I am planning to make same treatment for commands folder and many it valid for noImplicitAny 🎉
What is this?
This PR continues the work on making this project type safe with TypeScript. Goal is that the flag
noImplicitAny
will be set totrue
What this PR does?
adapter
folder is valid fornoImplicitAny
!resolveAssetSource
is now imported from the current place where it should. Previously it was imported from legacy location. More info here: https://facebook.github.io/react-native/docs/image#resolveassetsourceonPressIn
prop onTouchablePreview
What's next?
Next I am planning to make same treatment for
commands
folder and many it valid fornoImplicitAny
🎉