guidone / lets-form

A JSON form generator for React with Material UI / AntDesign / Bootstrap / RSuite / Mantine
https://letsform.dev
MIT License
100 stars 4 forks source link

Typescript support? #35

Closed bmx-lkvarfordt closed 1 week ago

bmx-lkvarfordt commented 2 weeks ago

Are there any plans to add typescript support to this library?

guidone commented 2 weeks ago

Hi @bmx-lkvarfordt, do you mean types declarations in the package or porting everything to TypeScript? Type declarations for sure it's in the roadmap

thanks for the feedback

bmx-lkvarfordt commented 2 weeks ago

Mostly looking for types declarations in the package! Thanks for the quick response!

guidone commented 1 week ago

TypeScript support is ready, for <LetsForm\>, for the DSL (<LfField />, etc) and the LetsForm schema

import {
  LetsFormSchemaReactRsuite5
} from 'lets-form/react-rsuite5';

const schema: LetsFormSchemaReactRsuite5 = { 
  // ...
};

documentation will be available in https://letsform.dev.

Any feedback is appreciated.