提交 8f21d86c 编写于 作者: A Alex Dima

Fix some types

上级 cc3a1359
......@@ -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.
......
......@@ -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.
......
......@@ -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.
*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册