Repository navigation
Type definitions for some classes #5387
|
Maybe I overlooked it in the docs, but are there any typedefinitions for things like:
I try to customize the dif algo, and noticed that typescript is not happy ;) |
Replies: 1 comment 1 reply
|
You did not overlook a documented type package: those paths are internal deep modules, and the published package currently ships their Monaco's supported public editor surface is re-exported from Practical options:
I would not use a broad |
You did not overlook a documented type package: those paths are internal deep modules, and the published package currently ships their
.jsfiles without matching.d.tsfiles.Monaco's supported public editor surface is re-exported from
monaco-editor-core/esm/vs/editor/editor.api(source), while the declaration build usesstripInternal: true(build config). That is why TypeScript is unhappy with imports such asstandaloneServices.js,rangeMapping.js, anddiffProviderFactoryService.js: they are implementation details rather than a typed extension API.Practical options:
monaco-editorand stay on the supported surface.