From 902f9e52a6b6fafae2957c7fb6b4c7b42af86556 Mon Sep 17 00:00:00 2001 From: sunhao Date: Tue, 16 Jul 2024 18:40:41 +0800 Subject: [PATCH] * core: refactor types of $.fn.zuiInit. --- lib/core/src/component/creator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/src/component/creator.ts b/lib/core/src/component/creator.ts index 8b59971957..4771f7edda 100644 --- a/lib/core/src/component/creator.ts +++ b/lib/core/src/component/creator.ts @@ -73,7 +73,7 @@ export function defineFn(name?: string) { /* Declare types. */ declare module 'cash-dom' { interface Cash { - zuiInit(this: Cash, options?: {update?: boolean}): Cash; + zuiInit(this: Cash, options?: {update?: boolean, beforeCreate?: BeforeCreateCallback, onCreate?: OnCreateCallback}): Cash; zui(this: Cash, name?: string, key?: string | number | true): ComponentClass | ComponentClass[] | Record | undefined; zuiCall(this: Cash, method: string, args?: unknown[]): Cash; }