FR: typescript defs
Hello, just wondering if there is a future with typescript definitions for solid-auth-client. Thanks!
The library is currently annotated with Flow, so we'll have to choose one or the other.
That said, would https://github.com/bcherny/flow-to-typescript help?
I have to admit ignorance, is it not possible to have both?
I will check that out as well. Thanks.
It's not possible to have both Flow and TypeScript in a source file. It would be possible to have a separate TypeScript type definitions file, but that would be double maintenance given that we already use the Flow typing system.
That said, this is our only Solid library using Flow; things might still change.
It would be nice to add the type definitions to the TypeScript DefinitelyTyped repository. There are already a couple of generators/examples that use Angular and Typescript, so it would make sense having the relative types well defined.