Skip to content

Adds typescript types #12

Open
ajmath wants to merge 1 commit into
kyaroru:masterfrom
ajmath:typescript-types
Open

Adds typescript types #12
ajmath wants to merge 1 commit into
kyaroru:masterfrom
ajmath:typescript-types

Conversation

@ajmath

@ajmath ajmath commented Feb 7, 2019

Copy link
Copy Markdown

If you're interested in adding some validation for the types, I can help set that up but it would require adding react, react-native, and typescript as dev dependencies which I didn't want to do since there are none currently. Basically, add those dependencies and then add an npm script with npx tsc --noEmit ./index.d.ts.

@kyaroru

kyaroru commented Feb 8, 2019

Copy link
Copy Markdown
Owner

hi @ajmath thanks for the suggestion.. but I not so understand on how it works 😢 (no TS experience)

@ajmath

ajmath commented Feb 8, 2019

Copy link
Copy Markdown
Author

That's all fine, it's mergeable as is now. Just something to consider for the future if you start adding some CI.

@Josephdias92

Copy link
Copy Markdown

Much needed PR, otherwise I have to jump to GitHub readme everytime to see the type of value a property expects

@jdnichollsc

Copy link
Copy Markdown

@kyaroru do you want to merge this?

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.

5 participants