Fix some ModelView API definitions (#16497)

* Remove duplicate title property

* More fixes

* Removed a few unnecessary extends
This commit is contained in:
Charles Gagnon
2021-07-30 11:44:45 -07:00
committed by GitHub
parent d6fd64c5eb
commit 68a22421f7

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

@@ -3172,7 +3172,7 @@ declare module 'azdata' {
* Properties representing the card component, can be used
* when using ModelBuilder to create the component
*/
export interface CardProperties extends ComponentProperties, ComponentWithIcon {
export interface CardProperties extends ComponentWithIconProperties {
label: string;
value?: string | undefined;
actions?: ActionDescriptor[] | undefined;
@@ -3243,7 +3243,7 @@ declare module 'azdata' {
export type ThemedIconPath = { light: string | vscode.Uri; dark: string | vscode.Uri };
export type IconPath = string | vscode.Uri | ThemedIconPath;
export interface ComponentWithIcon extends ComponentWithIconProperties { }
export interface ComponentWithIcon extends Component, ComponentWithIconProperties { }
export interface ComponentWithIconProperties extends ComponentProperties {
/**
@@ -3402,7 +3402,7 @@ declare module 'azdata' {
requiredIndicator?: boolean | undefined;
}
export interface ImageComponentProperties extends ComponentProperties, ComponentWithIcon {
export interface ImageComponentProperties extends ComponentWithIconProperties {
}
export interface GroupContainerProperties extends ComponentProperties {
@@ -3501,7 +3501,7 @@ declare module 'azdata' {
isAutoResizable: boolean;
}
export interface ButtonProperties extends ComponentProperties, ComponentWithIcon {
export interface ButtonProperties extends ComponentWithIconProperties {
/**
* The label for the button
*/
@@ -3514,12 +3514,6 @@ declare module 'azdata' {
* The content of the currently selected file
*/
fileContent?: string | undefined;
/**
* @deprecated This will be moved to `ComponentWithIconProperties`
*
* The title for the button. This title will show when hovered over
*/
title?: string | undefined;
}
export interface LoadingComponentProperties extends ComponentProperties {
@@ -3718,7 +3712,7 @@ declare module 'azdata' {
minimumHeight: number;
}
export interface ButtonComponent extends Component, ButtonProperties {
export interface ButtonComponent extends ComponentWithIcon, ButtonProperties {
/**
* An event called when the button is clicked
*/