Skip to content
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 full TypeScript support #97

Open
2 of 9 tasks
larrybotha opened this issue Feb 15, 2021 · 2 comments
Open
2 of 9 tasks

Add full TypeScript support #97

larrybotha opened this issue Feb 15, 2021 · 2 comments

Comments

@larrybotha
Copy link
Collaborator

larrybotha commented Feb 15, 2021

  • add svelte-checker
  • add svelte-preprocess
  • update components to use TypeScript
    • compile Svelte components on publish to prevent users from having to compile when importing svelte-forms-lib
    • use sveld or similar to generate component definitions
  • replace .js files with typed .ts files
  • remove lib/index.d.ts
  • generate index.d.ts from .ts files
  • add tsc test to CI
@larrybotha
Copy link
Collaborator Author

larrybotha commented Mar 21, 2021

NOTE: reverted TS syntax in components in #112. Without svelte-forms-lib compiling TS components to regular Svelte components, users importing svelte-forms-lib would be responsible for compilation, which is a poor UX.

Added notes to description for svelte-forms-lib taking responsibility for compiling TS components.

EDIT: See https://github.com/pyoner/svelte-form/blob/master/packages/lib/package.json for tips

@larrybotha
Copy link
Collaborator Author

NOTE: see https://github.com/mattjennings/svelte-typescript-component-template for compiling TS components and building definitions

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

No branches or pull requests

1 participant