Fix some types

This commit is contained in:
Alex Dima 2018-11-12 11:32:19 +01:00
parent cc3a1359ba
commit 8f21d86c00
3 changed files with 10 additions and 14 deletions

View file

@ -23,16 +23,14 @@ export interface IEditorScrollbarOptions {
arrowSize?: number;
/**
* Render vertical scrollbar.
* Accepted values: 'auto', 'visible', 'hidden'.
* Defaults to 'auto'.
*/
vertical?: string;
vertical?: 'auto' | 'visible' | 'hidden';
/**
* Render horizontal scrollbar.
* Accepted values: 'auto', 'visible', 'hidden'.
* Defaults to 'auto'.
*/
horizontal?: string;
horizontal?: 'auto' | 'visible' | 'hidden';
/**
* Cast horizontal and vertical shadows when the content is scrolled.
* Defaults to true.

View file

@ -418,7 +418,7 @@ export interface CompletionItem {
* this completion. When `falsy` the [label](#CompletionItem.label)
* is used.
*/
insertText: string;
insertText?: string;
/**
* Addition rules (as bitmask) that should be applied when inserting
* this completion.
@ -633,8 +633,8 @@ export interface SignatureHelpContext {
*/
export interface SignatureHelpProvider {
readonly signatureHelpTriggerCharacters: ReadonlyArray<string>;
readonly signatureHelpRetriggerCharacters: ReadonlyArray<string>;
readonly signatureHelpTriggerCharacters?: ReadonlyArray<string>;
readonly signatureHelpRetriggerCharacters?: ReadonlyArray<string>;
/**
* Provide help for the signature at the given position and document.

12
src/vs/monaco.d.ts vendored
View file

@ -2392,16 +2392,14 @@ declare namespace monaco.editor {
arrowSize?: number;
/**
* Render vertical scrollbar.
* Accepted values: 'auto', 'visible', 'hidden'.
* Defaults to 'auto'.
*/
vertical?: string;
vertical?: 'auto' | 'visible' | 'hidden';
/**
* Render horizontal scrollbar.
* Accepted values: 'auto', 'visible', 'hidden'.
* Defaults to 'auto'.
*/
horizontal?: string;
horizontal?: 'auto' | 'visible' | 'hidden';
/**
* Cast horizontal and vertical shadows when the content is scrolled.
* Defaults to true.
@ -4765,7 +4763,7 @@ declare namespace monaco.languages {
* this completion. When `falsy` the [label](#CompletionItem.label)
* is used.
*/
insertText: string;
insertText?: string;
/**
* Addition rules (as bitmask) that should be applied when inserting
* this completion.
@ -4941,8 +4939,8 @@ declare namespace monaco.languages {
* the [parameter hints](https://code.visualstudio.com/docs/editor/intellisense)-feature.
*/
export interface SignatureHelpProvider {
readonly signatureHelpTriggerCharacters: ReadonlyArray<string>;
readonly signatureHelpRetriggerCharacters: ReadonlyArray<string>;
readonly signatureHelpTriggerCharacters?: ReadonlyArray<string>;
readonly signatureHelpRetriggerCharacters?: ReadonlyArray<string>;
/**
* Provide help for the signature at the given position and document.
*/