Skip to content

InlayHintsOptions

原文链接

https://microsoft.github.io/monaco-editor/docs.html#interfaces/languages.typescript.InlayHintsOptions.html

ts
interface InlayHintsOptions {
    includeInlayEnumMemberValueHints?: boolean;
    includeInlayFunctionLikeReturnTypeHints?: boolean;
    includeInlayFunctionParameterTypeHints?: boolean;
    includeInlayParameterNameHints?: "all" | "none" | "literals";
    includeInlayParameterNameHintsWhenArgumentMatchesName?: boolean;
    includeInlayPropertyDeclarationTypeHints?: boolean;
    includeInlayVariableTypeHints?: boolean;
}

includeInlayEnumMemberValueHints

  • 类型: boolean

includeInlayFunctionLikeReturnTypeHints

  • 类型: boolean

includeInlayFunctionParameterTypeHints

  • 类型: boolean

includeInlayParameterNameHints

  • 类型: "all" | "none" | "literals"

includeInlayParameterNameHintsWhenArgumentMatchesName

  • 类型: boolean

includeInlayPropertyDeclarationTypeHints

  • 类型: boolean

includeInlayVariableTypeHints

  • 类型: boolean