diff --git a/typescript/core/base.ts b/typescript/core/base.ts index 8fb31e24e..55099eed8 100644 --- a/typescript/core/base.ts +++ b/typescript/core/base.ts @@ -9,7 +9,7 @@ export interface _base { createWidgets: (items: any, options: any, context: any) => any; - createItems: (data: any[], innerAttr?: any[], outerAttr?: any[]) => any; + createItems: (data: T[], innerAttr?: U[], outerAttr?: K[]) => (U & T & K)[]; packageItems: (items: any[], layouts: any[]) => any[];