Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate TypeScript definitions from schema (#16571)
* Install json-schema-to-typescript * Auto-generate typedefs from JSON schema * Remove primary_identifier from schema * Remove webextensions_compat_statement * Reverse order of typedefs output * Add TS type overrides * Allow for top-level __compat should we ever want it * Ensure potentially-unreachable definitions are generated as well * Generate BrowserName type from BCD * Generate enum types for browser data * Add/update descriptions * Simplify schema for support statements * Don't mark "mirror" as potential option for support statement * Generate CompatData type * Enforce type on compat data file * Add custom names to file types in schema * Rename script * Fix types output * Apply transformations to TypeScript manually (until PR is merged) * Move test to ensure alt. name + prefix aren't both defined into linter * Add descriptions * Update types * Make browser type property required * Add keywords to AJV * Finish preparing auto-generated types * Replace types.d.ts with auto-generated file * Ignore types.d.ts in Prettier/ESLint
- Loading branch information