suren-atoyan / monaco-react

Monaco Editor for React - use the monaco-editor in any React application without needing to use webpack (or rollup/parcel/etc) configuration files / plugins
https://monaco-react.surenatoyan.com/
MIT License
3.81k stars 268 forks source link

Fix them partial autocomplete #639

Open Masoud-z opened 3 months ago

Masoud-z commented 3 months ago

In "src\Editor\types.ts" file defining them as "Theme | string" cause TypeScript interpreted it as just "string", I changed it to "theme?: Theme | (string & {});" so now we can have partial autocomplete and TypeScript provide us 'vs-dark' | 'light' autocomplete and allows any other string.