@@ -160,7 +160,13 @@ export {
160160 enum ,
161161 enumValues ,
162162} from "./api-without-context" ;
163- export { fields , interface , interfaceField , union } from "./api-with-context" ;
163+ import {
164+ fields ,
165+ interface as interfaceType ,
166+ interfaceField ,
167+ union ,
168+ } from "./api-with-context" ;
169+ export { fields , interfaceType as interface , interfaceField , union } ;
164170export type {
165171 InferValueFromArg ,
166172 InferValueFromArgs ,
@@ -202,31 +208,50 @@ import type {
202208 */
203209export type Context = unknown ;
204210
211+ /** @deprecated Use {@link GNullableType} instead. */
205212export type NullableType = GNullableType < Context > ;
213+ /** @deprecated Use {@link GType} instead. */
206214export type Type = GType < Context > ;
215+ /** @deprecated Use {@link GNullableOutputType} instead. */
207216export type NullableOutputType = GNullableOutputType < Context > ;
217+ /** @deprecated Use {@link GOutputType} instead. */
208218export type OutputType = GOutputType < Context > ;
219+ /** @deprecated Use {@link GField} instead. */
209220export type Field <
210221 Source ,
211222 Args extends Record < string , GArg < GInputType > > ,
212- TType extends OutputType ,
223+ TType extends GOutputType < Context > ,
213224 SourceAtKey ,
214225> = GField < Source , Args , TType , SourceAtKey , Context > ;
226+ /** @deprecated Use {@link GFieldResolver} instead. */
215227export type FieldResolver <
216228 Source ,
217229 Args extends Record < string , GArg < GInputType > > ,
218- TType extends OutputType ,
230+ TType extends GOutputType < Context > ,
219231> = GFieldResolver < Source , Args , TType , Context > ;
232+ /**
233+ * @deprecated Use {@link GObjectType} or {@link object `g<typeof g.object<...>`}
234+ * instead.
235+ */
220236export type ObjectType < Source > = GObjectType < Source , Context > ;
237+ /**
238+ * @deprecated Use {@link GUnionType} or {@link union `g<typeof g.union<...>`}
239+ * instead.
240+ */
221241export type UnionType < Source > = GUnionType < Source , Context > ;
242+ /** @deprecated Use {@link GInterfaceType} instead. */
222243export type InterfaceType <
223244 Source ,
224245 Fields extends Record <
225246 string ,
226247 GInterfaceField < Record < string , GArg < GInputType > > , OutputType , Context >
227248 > ,
228249> = GInterfaceType < Source , Fields , Context > ;
250+ /**
251+ * @deprecated Use {@link GInterfaceField} or
252+ * {@link interfaceField `g<typeof g.interfaceField<...>`} instead.
253+ */
229254export type InterfaceField <
230255 Args extends Record < string , GArg < GInputType > > ,
231- TType extends OutputType ,
256+ TType extends GOutputType < Context > ,
232257> = GInterfaceField < Args , TType , Context > ;
0 commit comments