| 2784 | } |
| 2785 | |
| 2786 | export interface Component { |
| 2787 | readonly id: string; |
| 2788 | |
| 2789 | /** |
| 2790 | * Sends any updated properties of the component to the UI |
| 2791 | * |
| 2792 | * @returns Thenable that completes once the update |
| 2793 | * has been applied in the UI |
| 2794 | */ |
| 2795 | updateProperties(properties: { [key: string]: any }): Thenable<void>; |
| 2796 | |
| 2797 | /** |
| 2798 | * Sends an updated property of the component to the UI |
| 2799 | * |
| 2800 | * @returns Thenable that completes once the update |
| 2801 | * has been applied in the UI |
| 2802 | */ |
| 2803 | updateProperty(key: string, value: any): Thenable<void>; |
| 2804 | |
| 2805 | enabled: boolean; |
| 2806 | /** |
| 2807 | * Event fired to notify that the component's validity has changed |
| 2808 | */ |
| 2809 | readonly onValidityChanged: vscode.Event<boolean>; |
| 2810 | |
| 2811 | /** |
| 2812 | * Whether the component is valid or not |
| 2813 | */ |
| 2814 | readonly valid: boolean; |
| 2815 | |
| 2816 | /** |
| 2817 | * Run the component's validations |
| 2818 | */ |
| 2819 | validate(): Thenable<boolean>; |
| 2820 | } |
| 2821 | |
| 2822 | export interface FormComponent { |
| 2823 | component: Component; |
no outgoing calls
no test coverage detected