diff --git a/src/sql/azdata.d.ts b/src/sql/azdata.d.ts index 1d753f8a51..a4c5a90381 100644 --- a/src/sql/azdata.d.ts +++ b/src/sql/azdata.d.ts @@ -2592,7 +2592,7 @@ declare module 'azdata' { removeFormItem(formComponent: FormComponent | FormComponentGroup): boolean; } - export interface Component { + export interface Component extends ComponentProperties { readonly id: string; /** @@ -2618,13 +2618,6 @@ declare module 'azdata' { */ updateCssStyles(cssStyles: { [key: string]: string }): Thenable; - enabled: boolean; - - /** - * Corresponds to the display CSS property for the element - */ - display: DisplayType; - /** * Event fired to notify that the component's validity has changed */ @@ -2995,6 +2988,14 @@ declare module 'azdata' { * Without this the component will fail to correctly size itself */ position?: PositionType; + /** + * Whether the component is enabled in the DOM + */ + enabled?: boolean; + /** + * Corresponds to the display CSS property for the element + */ + display?: DisplayType; /** * Matches the CSS style key and its available values. */ diff --git a/src/sql/sqlops.proposed.d.ts b/src/sql/sqlops.proposed.d.ts index b0a768b59b..87081a9fa0 100644 --- a/src/sql/sqlops.proposed.d.ts +++ b/src/sql/sqlops.proposed.d.ts @@ -143,7 +143,7 @@ declare module 'sqlops' { removeFormItem(formComponent: FormComponent | FormComponentGroup): boolean; } - export interface Component { + export interface Component extends ComponentProperties { readonly id: string; /** @@ -169,13 +169,6 @@ declare module 'sqlops' { */ updateCssStyles(cssStyles: { [key: string]: string }): Thenable; - enabled: boolean; - - /** - * Corresponds to the display CSS property for the element - */ - display: DisplayType; - /** * Event fired to notify that the component's validity has changed */ @@ -519,7 +512,15 @@ declare module 'sqlops' { * set to 'absolute', with the parent FlexContainer having 'relative' position. * Without this the component will fail to correctly size itself */ - position?: string; + position?: PositionType; + /** + * Whether the component is enabled in the DOM + */ + enabled?: boolean; + /** + * Corresponds to the display CSS property for the element + */ + display?: DisplayType; /** * Matches the CSS style key and its available values. */