You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/reactotron-apollo-client/src/reactotron-apollo-client.ts
+43-41Lines changed: 43 additions & 41 deletions
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,7 @@ type MutationData = {
46
46
body: string|undefined
47
47
}
48
48
49
-
typeCallback=()=>any
49
+
// type Callback = () => any
50
50
51
51
typeArrayOfQuery=Array<QueryData>
52
52
typeArrayOfMutations=Array<MutationData>
@@ -59,45 +59,46 @@ type ApolloClientState = {
59
59
cache: object
60
60
}
61
61
62
-
typeRawMutationBody={
63
-
id: string
64
-
name: string|null
65
-
body: string
66
-
variables: object
67
-
}
68
-
69
-
typeRawQueryBody={
70
-
id: string
71
-
name: string|null
72
-
cachedData: object
73
-
}
74
-
75
-
typeRawData={
76
-
id: string
77
-
lastUpdateAt: Date
78
-
queries: ArrayOfQuery
79
-
mutations: ArrayOfMutations
80
-
cache: Array<BlockType>
81
-
}
82
-
83
-
typeData={
84
-
id: string
85
-
lastUpdateAt: Date
86
-
queries: Array<BlockType>
87
-
mutations: Array<BlockType>
88
-
cache: Array<BlockType>
89
-
}
90
-
91
-
typeBlockType={
92
-
id?: string
93
-
operationType?: string
94
-
name?: string|null
95
-
blocks?: Array<{
96
-
blockType: string
97
-
blockLabel: string
98
-
blockValue: any
99
-
}>
100
-
}
62
+
// TODO utilize when we do Queries and Mutations
63
+
// type RawMutationBody = {
64
+
// id: string
65
+
// name: string | null
66
+
// body: string
67
+
// variables: object
68
+
// }
69
+
70
+
// type RawQueryBody = {
71
+
// id: string
72
+
// name: string | null
73
+
// cachedData: object
74
+
// }
75
+
76
+
// type RawData = {
77
+
// id: string
78
+
// lastUpdateAt: Date
79
+
// queries: ArrayOfQuery
80
+
// mutations: ArrayOfMutations
81
+
// cache: Array<BlockType>
82
+
// }
83
+
84
+
// type Data = {
85
+
// id: string
86
+
// lastUpdateAt: Date
87
+
// queries: Array<BlockType>
88
+
// mutations: Array<BlockType>
89
+
// cache: Array<BlockType>
90
+
// }
91
+
92
+
// type BlockType = {
93
+
// id?: string
94
+
// operationType?: string
95
+
// name?: string | null
96
+
// blocks?: Array<{
97
+
// blockType: string
98
+
// blockLabel: string
99
+
// blockValue: any
100
+
// }>
101
+
// }
101
102
102
103
lettick=0
103
104
@@ -119,6 +120,7 @@ function getQueries(queryMap: Map<string, RawQueryData>): ArrayOfQuery {
119
120
constqueries: ArrayOfQuery=[]
120
121
121
122
if(queryMap){
123
+
// @ts-expect-error Type 'IterableIterator<RawQueryData>' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher
0 commit comments