ezno icon indicating copy to clipboard operation
ezno copied to clipboard

Merge Ezno runtime definitions with existing TS definition files

Open kaleidawave opened this issue 4 months ago • 3 comments

Currently the checker is built around definitions from this file

https://github.com/kaleidawave/ezno/blob/main/checker/definitions/overrides.d.ts

To support more of the runtime (as highlighted in #118), the checker should be able to use definitions from the TypeScript repository (such as es5.d.ts) to provide the same type coverage. As can be seen in overrides.d.ts, Ezno has some extended definitions to provide better information to the checker. What should be done is to create a tool (code mod / code modification) (similar to code_blocks_to_script.rs that parses es5.d.ts but selectively overwrites with definitions in overrides.d.ts to produce a final definition file build.

[!WARNING]
#120 (increasing the count of types and layout) is really needed to support the scale of es5.d.ts

kaleidawave avatar Mar 03 '24 22:03 kaleidawave