File tree Expand file tree Collapse file tree 3 files changed +14
-5
lines changed Expand file tree Collapse file tree 3 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,15 @@ import 'core-js';
3
3
/* eslint-disable no-plusplus */
4
4
/* eslint-disable guard-for-in */
5
5
/* eslint-disable no-restricted-syntax */
6
- const componentActionsRecord : Array < any > = [ ] ;
6
+
7
+ // import {Hook}
8
+ import {
9
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
10
+ HookStateItem ,
11
+ HookStates
12
+ } from './types/backendTypes' ;
13
+
14
+ const componentActionsRecord : HookStates = [ ] ;
7
15
let index : number = 0 ;
8
16
9
17
export default {
@@ -12,8 +20,8 @@ export default {
12
20
index ++ ;
13
21
return index - 1 ;
14
22
} ,
15
- getRecordByIndex : ( inputIndex : number ) : any => componentActionsRecord [ inputIndex ] ,
16
- getComponentByIndex : ( inputIndex : number ) : any => ( componentActionsRecord [ inputIndex ]
23
+ getRecordByIndex : ( inputIndex : number ) : HookStateItem => componentActionsRecord [ inputIndex ] ,
24
+ getComponentByIndex : ( inputIndex : number ) : any => ( componentActionsRecord [ inputIndex ]
17
25
? componentActionsRecord [ inputIndex ] . component
18
26
: undefined ) ,
19
27
} ;
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ export default (origin, mode) => {
49
49
} , ( ) => target . children . forEach ( child => jump ( child ) ) ) ;
50
50
}
51
51
52
- console . log ( 'TARGET' , target ) ;
52
+ // console.log('TARGET', target);
53
53
// Check for hooks state and set it with dispatch()
54
54
if ( target . state && target . state . hooksState ) {
55
55
target . state . hooksState . forEach ( hook => {
Original file line number Diff line number Diff line change 3
3
/* eslint-disable @typescript-eslint/no-explicit-any */
4
4
import Tree from '../tree' ;
5
5
6
+
6
7
export interface Snapshot {
7
8
tree : Tree ;
8
9
unfilteredTree : null ;
@@ -38,7 +39,7 @@ export interface ComponentData {
38
39
treeBaseDuration ?: number ;
39
40
}
40
41
41
- interface HookStateItem {
42
+ export interface HookStateItem {
42
43
state : any ;
43
44
component : any ;
44
45
}
You can’t perform that action at this time.
0 commit comments