feat(ct): typed hooks (#17935)
This commit is contained in:
Родитель
3a281364d8
Коммит
410b4447c8
|
@ -14,5 +14,9 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export declare function beforeMount(callback: (params: { hooksConfig: any }) => Promise<void>): void;
|
||||
export declare function afterMount(callback: (params: { hooksConfig: any }) => Promise<void>): void;
|
||||
type JsonPrimitive = string | number | boolean | null;
|
||||
type JsonValue = JsonPrimitive | JsonObject | JsonArray;
|
||||
type JsonArray = JsonValue[];
|
||||
type JsonObject = { [Key in string]?: JsonValue };
|
||||
export declare function beforeMount(callback: (params: { hooksConfig: JsonObject }) => Promise<void>): void;
|
||||
export declare function afterMount(callback: (params: { hooksConfig: JsonObject }) => Promise<void>): void;
|
||||
|
|
|
@ -14,5 +14,9 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export declare function beforeMount(callback: (params: { hooksConfig: any }) => Promise<void>): void;
|
||||
export declare function afterMount(callback: (params: { hooksConfig: any }) => Promise<void>): void;
|
||||
type JsonPrimitive = string | number | boolean | null;
|
||||
type JsonValue = JsonPrimitive | JsonObject | JsonArray;
|
||||
type JsonArray = JsonValue[];
|
||||
type JsonObject = { [Key in string]?: JsonValue };
|
||||
export declare function beforeMount(callback: (params: { hooksConfig: JsonObject }) => Promise<void>): void;
|
||||
export declare function afterMount(callback: (params: { hooksConfig: JsonObject }) => Promise<void>): void;
|
||||
|
|
|
@ -16,5 +16,9 @@
|
|||
|
||||
import type { SvelteComponent } from "svelte";
|
||||
|
||||
export declare function beforeMount(callback: (params: { hooksConfig: any }) => Promise<void>): void;
|
||||
export declare function afterMount(callback: (params: { hooksConfig: any, svelteComponent: SvelteComponent }) => Promise<void>): void;
|
||||
type JsonPrimitive = string | number | boolean | null;
|
||||
type JsonValue = JsonPrimitive | JsonObject | JsonArray;
|
||||
type JsonArray = JsonValue[];
|
||||
type JsonObject = { [Key in string]?: JsonValue };
|
||||
export declare function beforeMount(callback: (params: { hooksConfig: JsonObject }) => Promise<void>): void;
|
||||
export declare function afterMount(callback: (params: { hooksConfig: JsonObject, svelteComponent: SvelteComponent }) => Promise<void>): void;
|
||||
|
|
|
@ -16,5 +16,9 @@
|
|||
|
||||
import { App, ComponentPublicInstance } from 'vue';
|
||||
|
||||
export declare function beforeMount(callback: (params: { app: App, hooksConfig: any }) => Promise<void>): void;
|
||||
export declare function afterMount(callback: (params: { app: App, hooksConfig: any, instance: ComponentPublicInstance }) => Promise<void>): void;
|
||||
type JsonPrimitive = string | number | boolean | null;
|
||||
type JsonValue = JsonPrimitive | JsonObject | JsonArray;
|
||||
type JsonArray = JsonValue[];
|
||||
type JsonObject = { [Key in string]?: JsonValue };
|
||||
export declare function beforeMount(callback: (params: { app: App, hooksConfig: JsonObject }) => Promise<void>): void;
|
||||
export declare function afterMount(callback: (params: { app: App, hooksConfig: JsonObject, instance: ComponentPublicInstance }) => Promise<void>): void;
|
||||
|
|
|
@ -16,5 +16,9 @@
|
|||
|
||||
import { CombinedVueInstance, Vue } from 'vue/types/vue';
|
||||
|
||||
export declare function beforeMount(callback: (params: { hooksConfig: any }) => Promise<void>): void;
|
||||
export declare function afterMount(callback: (params: { hooksConfig: any, instance: CombinedVueInstance<Vue, object, object, object, Record<never, any>> }) => Promise<void>): void;
|
||||
type JsonPrimitive = string | number | boolean | null;
|
||||
type JsonValue = JsonPrimitive | JsonObject | JsonArray;
|
||||
type JsonArray = JsonValue[];
|
||||
type JsonObject = { [Key in string]?: JsonValue };
|
||||
export declare function beforeMount(callback: (params: { hooksConfig: JsonObject }) => Promise<void>): void;
|
||||
export declare function afterMount(callback: (params: { hooksConfig: JsonObject, instance: CombinedVueInstance<Vue, object, object, object, Record<never, any>> }) => Promise<void>): void;
|
||||
|
|
Загрузка…
Ссылка в новой задаче