editor icon indicating copy to clipboard operation
editor copied to clipboard

feat: schema to types

Open solvedDev opened this issue 2 years ago • 0 comments

This PR introduces the ability to generate TypeScript type definition files from our JSON schema database on the fly.

Motivation and Context

This allows us to make the experience around authoring custom components even better by embedding auto-completions for generator functions (lootTable, tradeTable, ...) and eventually the create(...) function.

To dos:

  • [ ] Figure out how to augment existing type definitions with automatically generated once
  • [ ] Figure out when we should update the type definitions
  • [ ] Figure out how/if we can support the create(...) function
  • [ ] Automatically annotate types with comments extracted from the "title" and "description" schema fields

solvedDev avatar Jun 13 '22 10:06 solvedDev