Promote CssStyles to stable API (#14824)

* Promote CssStyles to stable API

* add comment

* Fix compile
This commit is contained in:
Charles Gagnon
2021-03-22 12:16:59 -07:00
committed by GitHub
parent 1a74d0f3d4
commit 8fb54710fb
6 changed files with 17 additions and 14 deletions

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

@@ -2783,7 +2783,7 @@ declare module 'azdata' {
* @param cssStyles The styles to update
* @returns Thenable that completes once the update has been applied to the UI
*/
updateCssStyles(cssStyles: { [key: string]: string }): Thenable<void>;
updateCssStyles(cssStyles: CssStyles): Thenable<void>;
/**
* Event fired to notify that the component's validity has changed
@@ -2960,6 +2960,11 @@ declare module 'azdata' {
'inherit' |
'';
/**
* Set of CSS key-value pairs
*/
export type CssStyles = { [key: string]: string | number };
/**
* The config for a FlexBox-based container. This supports easy
* addition of content to a container with a flexible layout
@@ -3038,7 +3043,7 @@ declare module 'azdata' {
/**
* Matches the CSS style key and its available values.
*/
CSSStyles?: { [key: string]: string };
CSSStyles?: CssStyles;
}
export interface FormItemLayout {
@@ -3086,7 +3091,7 @@ declare module 'azdata' {
/**
* Matches the CSS style key and its available values.
*/
CSSStyles?: { [key: string]: string };
CSSStyles?: CssStyles;
}
export interface DivContainer extends Container<DivLayout, DivItemLayout>, DivContainerProperties {
@@ -3224,7 +3229,7 @@ declare module 'azdata' {
/**
* Matches the CSS style key and its available values.
*/
CSSStyles?: { [key: string]: string };
CSSStyles?: CssStyles;
}
export type ThemedIconPath = { light: string | vscode.Uri; dark: string | vscode.Uri };