mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 02:28:34 +01:00
remove some anys (#271651)
This commit is contained in:
committed by
GitHub
parent
3a8f6b3483
commit
cee904f80c
@@ -771,9 +771,8 @@ function getSchemaId(schema: JSONSchemaSettings, settingsLocation?: Uri): string
|
||||
return url;
|
||||
}
|
||||
|
||||
function isThenable<T>(obj: ProviderResult<T>): obj is Thenable<T> {
|
||||
// eslint-disable-next-line local/code-no-any-casts
|
||||
return obj && (<any>obj)['then'];
|
||||
function isThenable<T>(obj: unknown): obj is Thenable<T> {
|
||||
return !!obj && typeof (obj as unknown as Thenable<T>).then === 'function';
|
||||
}
|
||||
|
||||
function updateMarkdownString(h: MarkdownString): MarkdownString {
|
||||
|
||||
Reference in New Issue
Block a user