editor
editor copied to clipboard
feat: schema to types
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