mirror of
https://github.com/danbulant/monaco-yaml
synced 2026-07-07 20:10:41 +00:00
Fix types for languages.yaml namespaces
`monaco-editor` no longer uses a global `monaco` namespace.
This commit is contained in:
parent
36e4f908e7
commit
e784f842c3
1 changed files with 46 additions and 43 deletions
5
src/monaco.d.ts
vendored
5
src/monaco.d.ts
vendored
|
|
@ -2,8 +2,10 @@
|
||||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||||
*--------------------------------------------------------------------------------------------*/
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
import { IEvent } from 'monaco-editor';
|
||||||
|
|
||||||
declare namespace monaco.languages.yaml {
|
declare module 'monaco-editor' {
|
||||||
|
namespace languages.yaml {
|
||||||
export interface DiagnosticsOptions {
|
export interface DiagnosticsOptions {
|
||||||
/**
|
/**
|
||||||
* If set, the validator will be enabled and perform syntax validation as well as schema based validation.
|
* If set, the validator will be enabled and perform syntax validation as well as schema based validation.
|
||||||
|
|
@ -51,4 +53,5 @@ declare namespace monaco.languages.yaml {
|
||||||
}
|
}
|
||||||
|
|
||||||
export const yamlDefaults: LanguageServiceDefaults;
|
export const yamlDefaults: LanguageServiceDefaults;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue