Skip to content
Discussion options

You must be logged in to vote

You did not overlook a documented type package: those paths are internal deep modules, and the published package currently ships their .js files without matching .d.ts files.

Monaco's supported public editor surface is re-exported from monaco-editor-core/esm/vs/editor/editor.api (source), while the declaration build uses stripInternal: true (build config). That is why TypeScript is unhappy with imports such as standaloneServices.js, rangeMapping.js, and diffProviderFactoryService.js: they are implementation details rather than a typed extension API.

Practical options:

  • If the public diff options are sufficient, import the API/types from monaco-editor and stay on the supported surface.
  • If …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@LokiMidgard
Comment options

Answer selected by LokiMidgard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants