Introduced in https://github.com/mui/mui-toolpad/pull/1180 where we removed the DOM lib by default from the TypeScript editor.
This is a good thing, because the DOM lib included way more types than the function runtime supports. We'll just have to build a custom .d.ts file for the function runtime that only includes what it supports. for now:
Steps to reproduce 🕹
observe the type errors:
Introduced in https://github.com/mui/mui-toolpad/pull/1180 where we removed the DOM lib by default from the TypeScript editor. This is a good thing, because the DOM lib included way more types than the function runtime supports. We'll just have to build a custom .d.ts file for the function runtime that only includes what it supports. for now:
Any way we can automate this? Can we do something with https://github.com/microsoft/TypeScript-DOM-lib-generator to generate a subset?