diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-02-02 21:27:58 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-02-02 21:27:58 +0000 |
commit | ae16884b950d26546f323810170b1f8a25dc0bc0 (patch) | |
tree | 2b51c5ea7f7cbda460ea08c535a2f56489295543 /editors/code/src/color_theme.ts | |
parent | 5e61c9b11def1897c4123eeafb14b4d6a5223546 (diff) | |
parent | 2fd7af2a62ce0c8acb5daa6b2c179b638318f31a (diff) |
Merge #2989
2989: vscode extension: migrate from any to unknown where possible r=Veetaha a=Veetaha
`unknown` type is the stricter version of `any` and it should always be prefered (like `const` over `let`).
It lets you assign any value to it, but doesn't let you carry out arbitrary operations on them without an explicit type check (like `typeof unknownValue === 'string'`).
Co-authored-by: Veetaha <[email protected]>
Diffstat (limited to 'editors/code/src/color_theme.ts')
-rw-r--r-- | editors/code/src/color_theme.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/code/src/color_theme.ts b/editors/code/src/color_theme.ts index 71113d374..7e10c7f79 100644 --- a/editors/code/src/color_theme.ts +++ b/editors/code/src/color_theme.ts | |||
@@ -61,7 +61,7 @@ export class ColorTheme { | |||
61 | } | 61 | } |
62 | 62 | ||
63 | function loadThemeNamed(themeName: string): ColorTheme { | 63 | function loadThemeNamed(themeName: string): ColorTheme { |
64 | function isTheme(extension: vscode.Extension<any>): boolean { | 64 | function isTheme(extension: vscode.Extension<unknown>): boolean { |
65 | return ( | 65 | return ( |
66 | extension.extensionKind === vscode.ExtensionKind.UI && | 66 | extension.extensionKind === vscode.ExtensionKind.UI && |
67 | extension.packageJSON.contributes && | 67 | extension.packageJSON.contributes && |