File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
packages/data-connect/src/core Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -49,8 +49,8 @@ function isScalar(value: unknown): value is Scalar {
49
49
}
50
50
51
51
/**
52
- * Internal utility type. Defines the shape of selection set for a table. It must have
53
- * __typename and __id for normalization .
52
+ * Internal utility type. Defines the shape of selection set for a table.
53
+ * If it includes __typename and __id, it can be normalized (and is considered a StubDataObject) .
54
54
*/
55
55
interface SelectionSet {
56
56
[ field : string ] : Scalar | Scalar [ ] | SelectionSet | SelectionSet [ ] ;
@@ -106,9 +106,14 @@ function isNormalizeable(
106
106
/**
107
107
* Interface for a stub result tree, with fields which are stub data objects.
108
108
* @public
109
+ * TODO:
109
110
*/
110
111
export interface StubResultTree {
111
- [ key : string ] : StubDataObject | StubDataObjectList ;
112
+ [ key : string ] :
113
+ | SelectionSet
114
+ | SelectionSet [ ]
115
+ | StubDataObject
116
+ | StubDataObjectList ;
112
117
}
113
118
114
119
/**
You can’t perform that action at this time.
0 commit comments