sveltejs-forms icon indicating copy to clipboard operation
sveltejs-forms copied to clipboard

[offering pr] TypeScript Support

Open wbhob opened this issue 5 years ago • 1 comments

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

It is frustrating to have to build custom types to run alongside this library. I figure, if I'm going to do it anyway, I'd like to see if you'd accept a PR to add TS support.

Describe the solution you'd like A clear and concise description of what you want to happen.

Write and bundle TypeScript types with this package for those of us using TypeScript.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

We were going to try to write our own types to use alongside this library to get strong typing. We're ending up having to import from 'sveltejs-forms/src/components/Form.svelte' to get type safety, and ideally we wouldn't rebuild from source if at all possible.

Additional context Add any other context or screenshots about the feature request here.

wbhob avatar Sep 01 '20 16:09 wbhob

Great idea! Create a PR when you have it

mdauner avatar Sep 01 '20 18:09 mdauner