mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-17 17:22:42 -05:00
Convert ModelView validate to Promise (#13390)
* Convert ModelView validate to Promise * more cleanup
This commit is contained in:
@@ -99,7 +99,7 @@ export interface IComponent extends IDisposable {
|
||||
setProperties?: (properties: { [key: string]: any; }) => void;
|
||||
enabled: boolean;
|
||||
readonly valid?: boolean;
|
||||
validate(): Thenable<boolean>;
|
||||
validate(): Promise<boolean>;
|
||||
setDataProvider(handle: number, componentId: string, context: any): void;
|
||||
refreshDataProvider(item: any): void;
|
||||
focus(): void;
|
||||
|
||||
@@ -42,7 +42,7 @@ export interface IModelView extends IView {
|
||||
refreshDataProvider(componentId: string, item: any): void;
|
||||
registerEvent(componentId: string, initial?: boolean): void;
|
||||
onEvent: Event<IModelViewEventArgs>;
|
||||
validate(componentId: string): Thenable<boolean>;
|
||||
validate(componentId: string): Promise<boolean>;
|
||||
readonly onDestroy: Event<void>;
|
||||
focus(componentId: string): void;
|
||||
doAction(componentId: string, action: string, ...args: any[]): void;
|
||||
|
||||
Reference in New Issue
Block a user