2023-07-06 11:09:01 +00:00
|
|
|
export interface ComponentHooks {
|
2023-07-10 09:34:48 +00:00
|
|
|
onBeforeCreate?(): void;
|
|
|
|
onCreated?(): void;
|
|
|
|
onBeforeMount?(): void;
|
|
|
|
onMounted?(): void;
|
|
|
|
onBeforeUpdate?(): void;
|
|
|
|
onUpdated?(): void;
|
|
|
|
onBeforeUnmount?(): void;
|
|
|
|
onUnmounted?(): void;
|
2023-07-06 11:09:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface BaseComponentPassThroughOptions {
|
|
|
|
hooks?: ComponentHooks;
|
|
|
|
}
|
2023-07-06 11:59:21 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @todo Update all d.ts with it.
|
|
|
|
*/
|
|
|
|
export interface BaseComponentPassThroughMethodOptions<I = any, P = any, S = any> {
|
|
|
|
instance?: I | undefined | null;
|
|
|
|
props?: P | undefined | null;
|
|
|
|
state?: S | undefined | null;
|
|
|
|
}
|