OneGraph / graphiql-explorer

Explorer plugin for GraphiQL
MIT License
904 stars 97 forks source link

Provide .d.ts types #82

Open multimeric opened 2 years ago

multimeric commented 2 years ago

I notice this package uses flow, so I wonder if, for each release, we could generate a .d.ts file using something like https://github.com/Khan/flow-to-ts, and then include that in the npm package. This would allow easy integration with typescript projects.

sgrove commented 2 years ago

Happy to switch over I think, but it's not a priority right now. I've tried flow-to-ts in the past, be never got it to quite work!

multimeric commented 2 years ago

Sounds good, I'll try to have a look at porting it manually at some point. I can't get flow-to-ts to work either, and it's quite a large file so manually porting isn't trivial.

haase1020 commented 1 year ago

Are there plans to rewrite this package using TypeScript instead of Flow? If so, I would love to help in any way I can!