Updates types caused by monaco-html update.

This commit is contained in:
Henning Dieterichs 2021-06-15 10:13:55 +02:00
parent cb4199a26d
commit 45491d1a7e
No known key found for this signature in database
GPG key ID: 771381EFFDB9EC06
2 changed files with 54 additions and 54 deletions

54
typedoc/monaco.d.ts vendored
View file

@ -7506,7 +7506,7 @@ declare namespace monaco.languages.html {
readonly wrapAttributes: 'auto' | 'force' | 'force-aligned' | 'force-expand-multiline'; readonly wrapAttributes: 'auto' | 'force' | 'force-aligned' | 'force-expand-multiline';
} }
export interface CompletionConfiguration { export interface CompletionConfiguration {
[providerId: string]: boolean; readonly [providerId: string]: boolean;
} }
export interface Options { export interface Options {
/** /**
@ -7598,18 +7598,18 @@ declare namespace monaco.languages.html {
*/ */
export function registerHTMLLanguageService( export function registerHTMLLanguageService(
languageId: string, languageId: string,
options: Options, options?: Options,
modeConfiguration: ModeConfiguration modeConfiguration?: ModeConfiguration
): LanguageServiceRegistration; ): LanguageServiceRegistration;
export interface HTMLDataConfiguration { export interface HTMLDataConfiguration {
/** /**
* Defines whether the standard HTML tags and attributes are shown * Defines whether the standard HTML tags and attributes are shown
*/ */
useDefaultDataProvider?: boolean; readonly useDefaultDataProvider?: boolean;
/** /**
* Provides a set of custom data providers. * Provides a set of custom data providers.
*/ */
dataProviders?: { readonly dataProviders?: {
[providerId: string]: HTMLDataV1; [providerId: string]: HTMLDataV1;
}; };
} }
@ -7618,40 +7618,40 @@ declare namespace monaco.languages.html {
* https://github.com/microsoft/vscode-html-languageservice/blob/main/docs/customData.md * https://github.com/microsoft/vscode-html-languageservice/blob/main/docs/customData.md
*/ */
export interface HTMLDataV1 { export interface HTMLDataV1 {
version: 1 | 1.1; readonly version: 1 | 1.1;
tags?: ITagData[]; readonly tags?: ITagData[];
globalAttributes?: IAttributeData[]; readonly globalAttributes?: IAttributeData[];
valueSets?: IValueSet[]; readonly valueSets?: IValueSet[];
} }
export interface IReference { export interface IReference {
name: string; readonly name: string;
url: string; readonly url: string;
} }
export interface ITagData { export interface ITagData {
name: string; readonly name: string;
description?: string | MarkupContent; readonly description?: string | MarkupContent;
attributes: IAttributeData[]; readonly attributes: IAttributeData[];
references?: IReference[]; readonly references?: IReference[];
} }
export interface IAttributeData { export interface IAttributeData {
name: string; readonly name: string;
description?: string | MarkupContent; readonly description?: string | MarkupContent;
valueSet?: string; readonly valueSet?: string;
values?: IValueData[]; readonly values?: IValueData[];
references?: IReference[]; readonly references?: IReference[];
} }
export interface IValueData { export interface IValueData {
name: string; readonly name: string;
description?: string | MarkupContent; readonly description?: string | MarkupContent;
references?: IReference[]; readonly references?: IReference[];
} }
export interface IValueSet { export interface IValueSet {
name: string; readonly name: string;
values: IValueData[]; readonly values: IValueData[];
} }
export interface MarkupContent { export interface MarkupContent {
kind: MarkupKind; readonly kind: MarkupKind;
value: string; readonly value: string;
} }
export type MarkupKind = 'plaintext' | 'markdown'; export type MarkupKind = 'plaintext' | 'markdown';
} }

View file

@ -7506,7 +7506,7 @@ declare namespace monaco.languages.html {
readonly wrapAttributes: 'auto' | 'force' | 'force-aligned' | 'force-expand-multiline'; readonly wrapAttributes: 'auto' | 'force' | 'force-aligned' | 'force-expand-multiline';
} }
export interface CompletionConfiguration { export interface CompletionConfiguration {
[providerId: string]: boolean; readonly [providerId: string]: boolean;
} }
export interface Options { export interface Options {
/** /**
@ -7598,18 +7598,18 @@ declare namespace monaco.languages.html {
*/ */
export function registerHTMLLanguageService( export function registerHTMLLanguageService(
languageId: string, languageId: string,
options: Options, options?: Options,
modeConfiguration: ModeConfiguration modeConfiguration?: ModeConfiguration
): LanguageServiceRegistration; ): LanguageServiceRegistration;
export interface HTMLDataConfiguration { export interface HTMLDataConfiguration {
/** /**
* Defines whether the standard HTML tags and attributes are shown * Defines whether the standard HTML tags and attributes are shown
*/ */
useDefaultDataProvider?: boolean; readonly useDefaultDataProvider?: boolean;
/** /**
* Provides a set of custom data providers. * Provides a set of custom data providers.
*/ */
dataProviders?: { readonly dataProviders?: {
[providerId: string]: HTMLDataV1; [providerId: string]: HTMLDataV1;
}; };
} }
@ -7618,40 +7618,40 @@ declare namespace monaco.languages.html {
* https://github.com/microsoft/vscode-html-languageservice/blob/main/docs/customData.md * https://github.com/microsoft/vscode-html-languageservice/blob/main/docs/customData.md
*/ */
export interface HTMLDataV1 { export interface HTMLDataV1 {
version: 1 | 1.1; readonly version: 1 | 1.1;
tags?: ITagData[]; readonly tags?: ITagData[];
globalAttributes?: IAttributeData[]; readonly globalAttributes?: IAttributeData[];
valueSets?: IValueSet[]; readonly valueSets?: IValueSet[];
} }
export interface IReference { export interface IReference {
name: string; readonly name: string;
url: string; readonly url: string;
} }
export interface ITagData { export interface ITagData {
name: string; readonly name: string;
description?: string | MarkupContent; readonly description?: string | MarkupContent;
attributes: IAttributeData[]; readonly attributes: IAttributeData[];
references?: IReference[]; readonly references?: IReference[];
} }
export interface IAttributeData { export interface IAttributeData {
name: string; readonly name: string;
description?: string | MarkupContent; readonly description?: string | MarkupContent;
valueSet?: string; readonly valueSet?: string;
values?: IValueData[]; readonly values?: IValueData[];
references?: IReference[]; readonly references?: IReference[];
} }
export interface IValueData { export interface IValueData {
name: string; readonly name: string;
description?: string | MarkupContent; readonly description?: string | MarkupContent;
references?: IReference[]; readonly references?: IReference[];
} }
export interface IValueSet { export interface IValueSet {
name: string; readonly name: string;
values: IValueData[]; readonly values: IValueData[];
} }
export interface MarkupContent { export interface MarkupContent {
kind: MarkupKind; readonly kind: MarkupKind;
value: string; readonly value: string;
} }
export type MarkupKind = 'plaintext' | 'markdown'; export type MarkupKind = 'plaintext' | 'markdown';
} }