@@ -9,19 +9,19 @@ declare type ComputedInstance<D extends WechatMiniprogram.Component.DataOption,
9
9
[ K in keyof P ] : any ;
10
10
} ;
11
11
} ;
12
- declare type ComputedOptions < TData extends WechatMiniprogram . Component . DataOption , TProperty extends WechatMiniprogram . Component . PropertyOption , TMethod extends WechatMiniprogram . Component . MethodOption , TWatch extends Record < string , ( ...args : any [ ] ) => void > , TComputed extends Record < string , ( data : TData & {
13
- [ K in keyof TProperty ] : any ;
14
- } ) => any > , TCustomInstanceProperty extends WechatMiniprogram . IAnyObject = { } > = ( Partial < WechatMiniprogram . Component . Data < TData > > & Partial < WechatMiniprogram . Component . Property < TProperty > > & Partial < WechatMiniprogram . Component . Method < TMethod > > & Partial < WechatMiniprogram . Component . OtherOption > & Partial < WechatMiniprogram . Component . Lifetimes > & {
12
+ declare type ComputedOptions < TData extends WechatMiniprogram . Component . DataOption , TProperty extends WechatMiniprogram . Component . PropertyOption , TMethod extends WechatMiniprogram . Component . MethodOption , TWatch extends Record < string , ( ...args : any [ ] ) => void > , TComputed extends Record < string , (
13
+ data : TData & WechatMiniprogram . Component . PropertyOptionToData < TProperty >
14
+ ) => any > , TCustomInstanceProperty extends WechatMiniprogram . IAnyObject = { } > = ( Partial < WechatMiniprogram . Component . Data < TData > > & Partial < WechatMiniprogram . Component . Property < TProperty > > & Partial < WechatMiniprogram . Component . Method < TMethod > > & Partial < WechatMiniprogram . Component . OtherOption > & Partial < WechatMiniprogram . Component . Lifetimes > & {
15
15
watch ?: TWatch ;
16
16
computed ?: TComputed ;
17
17
template ?: string ;
18
18
} ) & ThisType < ComputedInstance < TData , TProperty , TMethod , TComputed , TCustomInstanceProperty > > ;
19
- export declare function ComponentWithComputed < TData extends WechatMiniprogram . Component . DataOption , TProperty extends WechatMiniprogram . Component . PropertyOption , TMethod extends WechatMiniprogram . Component . MethodOption , TWatch extends Record < string , ( ...args : any [ ] ) => void > , TComputed extends Record < string , ( data : TData & {
20
- [ K in keyof TProperty ] : any ;
21
- } ) => any > , TCustomInstanceProperty extends WechatMiniprogram . IAnyObject = { } > ( options : ComputedOptions < TData , TProperty , TMethod , TWatch , TComputed , TCustomInstanceProperty > ) : string ;
22
- export declare function BehaviorWithComputed < TData extends WechatMiniprogram . Behavior . DataOption , TProperty extends WechatMiniprogram . Behavior . PropertyOption , TMethod extends WechatMiniprogram . Behavior . MethodOption , TWatch extends Record < string , ( ...args : any [ ] ) => void > , TComputed extends Record < string , ( data : TData & {
23
- [ K in keyof TProperty ] : any ;
24
- } ) => any > , TCustomInstanceProperty extends WechatMiniprogram . IAnyObject = { } > ( options : ComputedOptions < TData , TProperty , TMethod , TWatch , TComputed , TCustomInstanceProperty > ) : string ;
19
+ export declare function ComponentWithComputed < TData extends WechatMiniprogram . Component . DataOption , TProperty extends WechatMiniprogram . Component . PropertyOption , TMethod extends WechatMiniprogram . Component . MethodOption , TWatch extends Record < string , ( ...args : any [ ] ) => void > , TComputed extends Record < string , (
20
+ data : TData & WechatMiniprogram . Component . PropertyOptionToData < TProperty >
21
+ ) => any > , TCustomInstanceProperty extends WechatMiniprogram . IAnyObject = { } > ( options : ComputedOptions < TData , TProperty , TMethod , TWatch , TComputed , TCustomInstanceProperty > ) : string ;
22
+ export declare function BehaviorWithComputed < TData extends WechatMiniprogram . Behavior . DataOption , TProperty extends WechatMiniprogram . Behavior . PropertyOption , TMethod extends WechatMiniprogram . Behavior . MethodOption , TWatch extends Record < string , ( ...args : any [ ] ) => void > , TComputed extends Record < string , (
23
+ data : TData & WechatMiniprogram . Component . PropertyOptionToData < TProperty >
24
+ ) => any > , TCustomInstanceProperty extends WechatMiniprogram . IAnyObject = { } > ( options : ComputedOptions < TData , TProperty , TMethod , TWatch , TComputed , TCustomInstanceProperty > ) : string ;
25
25
export declare enum DataTracerMode {
26
26
Auto = 0 ,
27
27
Proxy = 1 ,
0 commit comments