File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -93,11 +93,11 @@ type MayReturnNull<T extends (...x: any[]) => any> = (
9393 ...args : Parameters < T >
9494) => ReturnType < T > | null ;
9595
96- export type ItemInstanceOpts < Key extends keyof ItemInstance < any > > = {
97- item : ItemInstance < any > ;
98- tree : TreeInstance < any > ;
96+ export type ItemInstanceOpts < T , Key extends keyof ItemInstance < any > > = {
97+ item : ItemInstance < T > ;
98+ tree : TreeInstance < T > ;
9999 itemId : string ;
100- prev ?: MayReturnNull < ItemInstance < any > [ Key ] > ;
100+ prev ?: MayReturnNull < ItemInstance < T > [ Key ] > ;
101101} ;
102102
103103export type TreeInstanceOpts < Key extends keyof TreeInstance < any > > = {
@@ -131,7 +131,7 @@ export type FeatureImplementation<T = any> = {
131131
132132 itemInstance ?: {
133133 [ key in keyof ItemInstance < T > ] ?: (
134- opts : ItemInstanceOpts < key > ,
134+ opts : ItemInstanceOpts < T , key > ,
135135 ...args : Parameters < ItemInstance < T > [ key ] >
136136 ) => void ;
137137 } ;
You can’t perform that action at this time.
0 commit comments