@@ -18,10 +18,11 @@ export type NodeMeta = {
1818 endIndex : number ,
1919} ;
2020
21+ export type Path = Symbol ;
2122export type Node = {
2223 contents : Array < Node > | NodeContents ,
2324 name : string ,
24- path : string ,
25+ path : Path ,
2526 type : ?Symbol ,
2627 meta : ?NodeMeta ,
2728} ;
@@ -50,9 +51,9 @@ export type ObjectClient = {
5051 getPrototype : ( ) => Promise < { prototype : Object } > ,
5152} ;
5253
53- export type CachedNodes = Map < string , Array < Node >> ;
54+ export type CachedNodes = Map < Path , Array < Node >> ;
5455
55- export type LoadedProperties = Map < string , GripProperties > ;
56+ export type LoadedProperties = Map < Path , GripProperties > ;
5657
5758export type Mode = MODE . TINY | MODE . SHORT | MODE . LONG ;
5859
@@ -91,10 +92,10 @@ export type Props = {
9192 }
9293 ) => any ,
9394 actors : Set < string > ,
94- expandedPaths : Set < string > ,
95+ expandedPaths : Set < Path > ,
9596 focusedItem : ?Node ,
9697 loadedProperties : LoadedProperties ,
97- loading : Map < string , Array < Promise < GripProperties> >> ,
98+ loading : Map < Path , Array < Promise < GripProperties> >> ,
9899} ;
99100
100101export type ReduxAction = {
@@ -104,11 +105,16 @@ export type ReduxAction = {
104105
105106export type State = {
106107 actors : Set < string > ,
107- expandedPaths : Set < string > ,
108+ expandedPaths : Set < Path > ,
108109 focusedItem : ?Node ,
109110 loadedProperties : LoadedProperties ,
110111} ;
111112
113+ export type Store = {
114+ dispatch : ( any ) => any ,
115+ getState : ( ) => State
116+ } ;
117+
112118export type ObjectInspectorId = string | number ;
113119
114120export type PersistedStates = Map < ObjectInspectorId , State > ;
0 commit comments