Skip to content

Conversation

@manakuro
Copy link
Owner

@manakuro manakuro commented Jun 13, 2019

What:
Fix Query typings.

Why:
Typings error occurred because of incompatible with Query interface.

How:

  • Use NativeTestInstance type for returning Query interface.
  • Remove NativeTestInstance type from testRenderer argument in Query interface.
  • Fix ReactTestInstance.getProps type.

Checklist:

  • Documentation added to the
    docs site
  • Typescript definitions updated
  • Tests
  • Ready to be merged

Results:

$ yarn tsc                                                                                                                                                                          
yarn run v1.15.2
$ /Users/me/workspace/react-native/react-native-sample/node_modules/.bin/tsc
✨  Done in 30.35s.

@manakuro manakuro merged commit e33f28f into master Jun 13, 2019
@manakuro manakuro deleted the fix-query-typings branch June 13, 2019 03:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants