@@ -17,7 +17,7 @@ exports[`schema2 2`] = `
17
17
exports [` schema2 3` ]= `
18
18
"export{ create } from './Client.js'
19
19
export{ isError } from './Error.js'
20
- export* as Select from './Select.js'
20
+ export{ Select } from './Select.js'
21
21
"
22
22
` ;
23
23
@@ -52,106 +52,106 @@ import { Index } from './Index.js'
52
52
import{ createSelect } from '../../../../src/entrypoints/alpha/client.js'
53
53
export const Select = createSelect('default')
54
54
55
- //Root Types
56
- // ----------
55
+ //Buildtime
56
+ // ---------
57
57
58
- export type Mutation<$SelectionSet extends SelectionSet.Root<Index, ' Mutation' >> = ResultSet.Root<
59
- $SelectionSet,
60
- Index,
61
- 'Mutation'
62
- >
58
+ export namespace Select{
59
+ // Root Types
60
+ // ----------
63
61
64
- export typeQuery <$SelectionSet extends SelectionSet.Root<Index, ' Query ' >> = ResultSet.Root<
65
- $SelectionSet,
66
- Index,
67
- 'Query '
68
- >
62
+ export type Mutation < $SelectionSet extends SelectionSet .Root < Index ,' Mutation ' >> = ResultSet .Root <
63
+ $SelectionSet ,
64
+ Index ,
65
+ ' Mutation '
66
+ >
69
67
70
- // Object Types
71
- // ------------
68
+ export type Query < $SelectionSet extends SelectionSet .Root < Index ,' Query' >> = ResultSet .Root <
69
+ $SelectionSet ,
70
+ Index ,
71
+ ' Query'
72
+ >
72
73
73
- export type Bar<$SelectionSet extends SelectionSet.Object<Index['objects']['Bar'], Index >> = ResultSet.Object$<
74
- $SelectionSet,
75
- Index['objects']['Bar'],
76
- Index
77
- >
74
+ // Object Types
75
+ // ------------
78
76
79
- export type DateObject1<$SelectionSet extends SelectionSet.Object<Index['objects']['DateObject1'], Index >> =
80
- ResultSet.Object$<$SelectionSet, Index['objects']['DateObject1'], Index>
77
+ export type Bar < $SelectionSet extends SelectionSet .Object < Index [' objects' ][' Bar' ],Index >> = ResultSet .Object$ <
78
+ $SelectionSet ,
79
+ Index [' objects' ][' Bar' ],
80
+ Index
81
+ >
81
82
82
- export typeDateObject2 <$SelectionSet extends SelectionSet.Object<Index['objects']['DateObject2 '], Index >> =
83
- ResultSet.Object$<$SelectionSet, Index['objects']['DateObject2 '], Index>
83
+ export type DateObject1 < $SelectionSet extends SelectionSet .Object < Index [' objects' ][' DateObject1 ' ],Index >> =
84
+ ResultSet .Object$ < $SelectionSet ,Index [' objects' ][' DateObject1 ' ],Index >
84
85
85
- export typeErrorOne <$SelectionSet extends SelectionSet.Object<Index['objects']['ErrorOne '], Index >> =
86
- ResultSet.Object$<$SelectionSet, Index['objects']['ErrorOne '], Index>
86
+ export type DateObject2 < $SelectionSet extends SelectionSet .Object < Index [' objects' ][' DateObject2 ' ],Index >> =
87
+ ResultSet .Object$ < $SelectionSet ,Index [' objects' ][' DateObject2 ' ],Index >
87
88
88
- export typeErrorTwo <$SelectionSet extends SelectionSet.Object<Index['objects']['ErrorTwo '], Index >> =
89
- ResultSet.Object$<$SelectionSet, Index['objects']['ErrorTwo '], Index>
89
+ export type ErrorOne < $SelectionSet extends SelectionSet .Object < Index [' objects' ][' ErrorOne ' ],Index >> =
90
+ ResultSet .Object$ < $SelectionSet ,Index [' objects' ][' ErrorOne ' ],Index >
90
91
91
- export type Foo<$SelectionSet extends SelectionSet.Object<Index['objects']['Foo'], Index >> = ResultSet.Object$<
92
- $SelectionSet,
93
- Index['objects']['Foo'],
94
- Index
95
- >
92
+ export type ErrorTwo < $SelectionSet extends SelectionSet .Object < Index [' objects' ][' ErrorTwo' ],Index >> =
93
+ ResultSet .Object$ < $SelectionSet ,Index [' objects' ][' ErrorTwo' ],Index >
96
94
97
- export typeObject1 <$SelectionSet extends SelectionSet.Object<Index['objects']['Object1 '], Index >> = ResultSet.Object$<
98
- $SelectionSet,
99
- Index['objects']['Object1 '],
100
- Index
101
- >
95
+ export type Foo < $SelectionSet extends SelectionSet .Object < Index [' objects' ][' Foo ' ],Index >> = ResultSet .Object$ <
96
+ $SelectionSet ,
97
+ Index [' objects' ][' Foo ' ],
98
+ Index
99
+ >
102
100
103
- export type Object1ImplementingInterface<
104
- $SelectionSet extends SelectionSet.Object<Index['objects']['Object1ImplementingInterface'], Index>,
105
- > = ResultSet.Object$<$SelectionSet, Index['objects']['Object1ImplementingInterface'], Index>
101
+ export type Object1 < $SelectionSet extends SelectionSet .Object < Index [' objects' ][' Object1' ],Index >> =
102
+ ResultSet .Object$ < $SelectionSet ,Index [' objects' ][' Object1' ],Index >
106
103
107
- export typeObject2ImplementingInterface <
108
- $SelectionSet extends SelectionSet.Object<Index['objects']['Object2ImplementingInterface '], Index>,
109
- > = ResultSet.Object$<$SelectionSet, Index['objects']['Object2ImplementingInterface '], Index>
104
+ export type Object1ImplementingInterface <
105
+ $SelectionSet extends SelectionSet .Object < Index [' objects' ][' Object1ImplementingInterface ' ],Index > ,
106
+ > = ResultSet .Object$ < $SelectionSet ,Index [' objects' ][' Object1ImplementingInterface ' ],Index >
110
107
111
- export type ObjectNested<$SelectionSet extends SelectionSet.Object<Index['objects']['ObjectNested'], Index >> =
112
- ResultSet.Object$<$SelectionSet, Index['objects']['ObjectNested'], Index>
108
+ export type Object2ImplementingInterface <
109
+ $SelectionSet extends SelectionSet .Object < Index [' objects' ][' Object2ImplementingInterface' ],Index > ,
110
+ > = ResultSet .Object$ < $SelectionSet ,Index [' objects' ][' Object2ImplementingInterface' ],Index >
113
111
114
- export typeObjectUnion <$SelectionSet extends SelectionSet.Object<Index['objects']['ObjectUnion '], Index >> =
115
- ResultSet.Object$<$SelectionSet, Index['objects']['ObjectUnion '], Index>
112
+ export type ObjectNested < $SelectionSet extends SelectionSet .Object < Index [' objects' ][' ObjectNested ' ],Index >> =
113
+ ResultSet .Object$ < $SelectionSet ,Index [' objects' ][' ObjectNested ' ],Index >
116
114
117
- export typelowerCaseObject <$SelectionSet extends SelectionSet.Object<Index['objects']['lowerCaseObject '], Index >> =
118
- ResultSet.Object$<$SelectionSet, Index['objects']['lowerCaseObject '], Index>
115
+ export type ObjectUnion < $SelectionSet extends SelectionSet .Object < Index [' objects' ][' ObjectUnion ' ],Index >> =
116
+ ResultSet .Object$ < $SelectionSet ,Index [' objects' ][' ObjectUnion ' ],Index >
119
117
120
- export typelowerCaseObject2 <$SelectionSet extends SelectionSet.Object<Index['objects']['lowerCaseObject2 '], Index >> =
121
- ResultSet.Object$<$SelectionSet, Index['objects']['lowerCaseObject2 '], Index>
118
+ export type lowerCaseObject < $SelectionSet extends SelectionSet .Object < Index [' objects' ][' lowerCaseObject ' ],Index >> =
119
+ ResultSet .Object$ < $SelectionSet ,Index [' objects' ][' lowerCaseObject ' ],Index >
122
120
123
- // Union Types
124
- // -----------
121
+ export type lowerCaseObject2 < $SelectionSet extends SelectionSet . Object < Index [ ' objects ' ][ ' lowerCaseObject2 ' ], Index >> =
122
+ ResultSet . Object$ < $SelectionSet , Index [ ' objects ' ][ ' lowerCaseObject2 ' ], Index >
125
123
126
- export type DateUnion<$SelectionSet extends SelectionSet.Union<Index['unions']['DateUnion'], Index >> = ResultSet.Union<
127
- $SelectionSet,
128
- Index['unions']['DateUnion'],
129
- Index
130
- >
124
+ // Union Types
125
+ // -----------
131
126
132
- export typeFooBarUnion <$SelectionSet extends SelectionSet.Union<Index['unions']['FooBarUnion '], Index >> =
133
- ResultSet.Union<$SelectionSet, Index['unions']['FooBarUnion '], Index>
127
+ export type DateUnion < $SelectionSet extends SelectionSet .Union < Index [' unions' ][' DateUnion ' ],Index >> =
128
+ ResultSet .Union < $SelectionSet ,Index [' unions' ][' DateUnion ' ],Index >
134
129
135
- export type Result<$SelectionSet extends SelectionSet.Union<Index['unions']['Result'], Index >> = ResultSet.Union<
136
- $SelectionSet,
137
- Index['unions']['Result'],
138
- Index
139
- >
130
+ export type FooBarUnion < $SelectionSet extends SelectionSet .Union < Index [' unions' ][' FooBarUnion' ],Index >> =
131
+ ResultSet .Union < $SelectionSet ,Index [' unions' ][' FooBarUnion' ],Index >
140
132
141
- export type lowerCaseUnion<$SelectionSet extends SelectionSet.Union<Index['unions']['lowerCaseUnion'], Index >> =
142
- ResultSet.Union<$SelectionSet, Index['unions']['lowerCaseUnion'], Index>
133
+ export type Result < $SelectionSet extends SelectionSet .Union < Index [' unions' ][' Result' ],Index >> = ResultSet .Union <
134
+ $SelectionSet ,
135
+ Index [' unions' ][' Result' ],
136
+ Index
137
+ >
143
138
144
- // Interface Types
145
- // ---------------
139
+ export type lowerCaseUnion < $SelectionSet extends SelectionSet . Union < Index [ ' unions ' ][ ' lowerCaseUnion ' ], Index >> =
140
+ ResultSet . Union < $SelectionSet , Index [ ' unions ' ][ ' lowerCaseUnion ' ], Index >
146
141
147
- export type DateInterface1< $SelectionSet extends SelectionSet. Interface<Index['interfaces']['DateInterface1'], Index >> =
148
- ResultSet.Interface<$SelectionSet, Index['interfaces']['DateInterface1'], Index>
142
+ // Interface Types
143
+ // ---------------
149
144
150
- export type Error<$SelectionSet extends SelectionSet.Interface<Index['interfaces']['Error'], Index >> =
151
- ResultSet.Interface<$SelectionSet, Index['interfaces']['Error'], Index>
145
+ export type DateInterface1 <
146
+ $SelectionSet extends SelectionSet .Interface < Index [' interfaces' ][' DateInterface1' ],Index > ,
147
+ > = ResultSet .Interface < $SelectionSet ,Index [' interfaces' ][' DateInterface1' ],Index >
152
148
153
- export type Interface<$SelectionSet extends SelectionSet.Interface<Index['interfaces']['Interface'], Index >> =
154
- ResultSet.Interface<$SelectionSet, Index['interfaces']['Interface'], Index>
149
+ export type Error < $SelectionSet extends SelectionSet .Interface < Index [' interfaces' ][' Error' ],Index >> =
150
+ ResultSet .Interface < $SelectionSet ,Index [' interfaces' ][' Error' ],Index >
151
+
152
+ export type Interface < $SelectionSet extends SelectionSet .Interface < Index [' interfaces' ][' Interface' ],Index >> =
153
+ ResultSet .Interface < $SelectionSet ,Index [' interfaces' ][' Interface' ],Index >
154
+ }
155
155
"
156
156
`;
157
157