svelte-forms-lib icon indicating copy to clipboard operation
svelte-forms-lib copied to clipboard

Add full TypeScript support

Open larrybotha opened this issue 4 years ago • 2 comments

  • [x] add svelte-checker
  • [x] 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 avatar Feb 15 '21 21:02 larrybotha

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 avatar Mar 21 '21 17:03 larrybotha

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

larrybotha avatar May 02 '21 14:05 larrybotha