microsoft / design-to-code

A system of development tools, and utilities used à la carte or as a suite to build enterprise-grade websites and applications.
MIT License
24 stars 6 forks source link

[Feature] Create a mapping utility to convert component definitions to TypeScript definition files for interpretation by SkateJS #48

Open janechu opened 3 years ago

janechu commented 3 years ago

Description

Currently for integration between @skatejs and @microsoft/fast-components in a TypeScript React app there needs a separate definition file, which must be created manually see: https://www.fast.design/docs/integrations/react#typescript-and-tsx-support

This would be much easier to accomplish with a utility that can take component definitions (available for each of the @microsoft/fast-components) and convert them.

Requirements

Note: Ensure this can be used in node as this utility will need to generate the contents for the .d.ts file as well as write them.