mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 22:02:55 +01:00
Add ts.InlayHintsOptions for nightly builds
This commit is contained in:
parent
db5039b702
commit
36fb92be15
1 changed files with 13 additions and 0 deletions
|
|
@ -13,6 +13,19 @@ import {
|
|||
} from './monaco.contribution';
|
||||
import { Uri, worker } from '../../fillers/monaco-editor-core';
|
||||
|
||||
declare module './lib/typescriptServices' {
|
||||
// Removed in TS 4.7 and merged into UserPreferences
|
||||
export interface InlayHintsOptions extends ts.UserPreferences {
|
||||
readonly includeInlayParameterNameHints?: 'none' | 'literals' | 'all';
|
||||
readonly includeInlayParameterNameHintsWhenArgumentMatchesName?: boolean;
|
||||
readonly includeInlayFunctionParameterTypeHints?: boolean;
|
||||
readonly includeInlayVariableTypeHints?: boolean;
|
||||
readonly includeInlayPropertyDeclarationTypeHints?: boolean;
|
||||
readonly includeInlayFunctionLikeReturnTypeHints?: boolean;
|
||||
readonly includeInlayEnumMemberValueHints?: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Loading a default lib as a source file will mess up TS completely.
|
||||
* So our strategy is to hide such a text model from TS.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue