Merge pull request #38 from remcohaszing/fix-languages.yaml-types

Fix types for languages.yaml namespaces
This commit is contained in:
Yazan Aabed 2020-12-15 14:12:45 +01:00 committed by GitHub
commit 8d3e1626f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

5
src/monaco.d.ts vendored
View file

@ -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;
}
} }