mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-04 17:23:45 -05:00
Promote CssStyles to stable API (#14824)
* Promote CssStyles to stable API * add comment * Fix compile
This commit is contained in:
13
src/sql/azdata.d.ts
vendored
13
src/sql/azdata.d.ts
vendored
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user