MCPcopy
hub / github.com/microsoft/monaco-editor / IMonacoEnvironment

Interface IMonacoEnvironment

src/common/workers.ts:12–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10 'name' | Extract<keyof Options, keyof TrustedTypePolicyOptions>
11 > {
12 interface IMonacoEnvironment {
13 createTrustedTypesPolicy<Options extends TrustedTypePolicyOptions>(
14 policyName: string,
15 policyOptions?: Options
16 ):
17 | undefined
18 | Pick<
19 TrustedTypePolicy<Options>,
20 'name' | Extract<keyof Options, keyof TrustedTypePolicyOptions>
21 >;
22 }
23 const monacoEnvironment: IMonacoEnvironment | undefined = (globalThis as any).MonacoEnvironment;
24
25 if (monacoEnvironment?.createTrustedTypesPolicy) {

Callers 4

createTrustedTypesPolicyFunction · 0.80
getWorkerFunction · 0.80
getWorkerFunction · 0.80
getWorkerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…