Add IconPath type (#14420)

* Add IconPath type

* Add ThemedIconPath subtype

* Update type
This commit is contained in:
Charles Gagnon
2021-02-24 12:49:54 -08:00
committed by GitHub
parent 587ac45418
commit 4b40d66bca
11 changed files with 34 additions and 36 deletions

5
src/sql/azdata.d.ts vendored
View File

@@ -3180,11 +3180,14 @@ declare module 'azdata' {
CSSStyles?: { [key: string]: string };
}
export type ThemedIconPath = { light: string | vscode.Uri; dark: string | vscode.Uri };
export type IconPath = string | vscode.Uri | ThemedIconPath;
export interface ComponentWithIcon {
/**
* @deprecated This will be moved to `ComponentWithIconProperties`
*/
iconPath?: string | vscode.Uri | { light: string | vscode.Uri; dark: string | vscode.Uri };
iconPath?: IconPath;
/**
* @deprecated This will be moved to `ComponentWithIconProperties`
*/