Themes

Editor/Types/Environment
Environment
Name
Description
Type
baseUrl

The base url where the editor sources are found (which contains the vs folder)

string
globalAPI

Define a global monaco symbol. This is true by default in AMD and false by default in ESM.

boolean
createTrustedTypesPolicy

Create a trusted types policy (same API as window.trustedTypes.createPolicy)

(policyName: string policyOptions: ITrustedTypePolicyOptions ) => undefined | ITrustedTypePolicy
getWorker

A web worker factory. NOTE: If getWorker is defined, getWorkerUrl is not invoked.

(workerId: string label: string ) => Worker | Promise<Worker>
getWorkerUrl

Return the location for web worker scripts. NOTE: If getWorker is defined, getWorkerUrl is not invoked.

(workerId: string label: string ) => string