-
Notifications
You must be signed in to change notification settings - Fork 32
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
Add TypeScript definitions #304
Comments
There isn't really enough of an API here for that integration, to be honest. The exported We are using TS fairly extensively now, but aren't doing much in the way of route type checking for now. |
And I think most of the type checking that you would need on routes is available from the base Found types. |
For example you can create a file
|
Right – ideally we could come up with a better type for routes here, though. |
I would love to help if you give me some instructions, I never added types to library, but this is what I use, not sure if it helps or if it's 100% correct. And I have no idea how to add fields to RouteRenderArgs based on query prop
|
Ugh, unfortunately I don't think there's a good way to add types here. |
During a conversion of a project I'm working on from Flow to TypeScript, the Found router has been the most challenging piece, and |
any luck on this |
It looks like I ended up putting declare module '*.css';
declare module '*.scss';
declare module 'draft-js-single-line-plugin';
declare module 'react-async-ssr';
declare module 'found-relay';
declare module 'react-responsive-hoc';
declare module 'es6-promise-debounce';
declare module 'draft-js-mention-plugin';
declare module 'draft-js-plugins-editor'; In the end, it wasn't that hard to get things working. Eventually it will be nice to have the types for |
i am thinking of using this for routing but there's no @types/found-relay?
The text was updated successfully, but these errors were encountered: