chore: run integration tests separately (#630)
This commit is contained in:
parent
d5b8ea73da
commit
5a8fcae3bd
|
|
@ -45,8 +45,8 @@
|
|||
"release:pr": "dripip pr",
|
||||
"release:preview": "dripip preview",
|
||||
"release:stable": "dripip stable",
|
||||
"test": "yarn test:types && jest",
|
||||
"test:ci": "yarn test:types && jest --coverage --maxWorkers 2",
|
||||
"test": "yarn test:types && jest integrations && jest --testPathIgnorePatterns integrations",
|
||||
"test:ci": "yarn test:types && jest integrations --coverage && jest --testPathIgnorePatterns integrations --coverage",
|
||||
"test:debug": "node --inspect-brk $(yarn bin)/jest -i --watch",
|
||||
"test:types": "tsc -p tsconfig.spec.types.json",
|
||||
"ts-ast-reader": "cd examples/ts-ast-reader && yarn start",
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
/// <reference path="../_setup.ts" />
|
||||
import { writeFileSync } from 'fs'
|
||||
import { unlinkSync } from 'fs'
|
||||
import { join, relative } from 'path'
|
||||
import { core } from '../../src'
|
||||
import { BuilderConfigInput } from '../../src/core'
|
||||
|
|
@ -41,11 +43,20 @@ export async function generateTypegen(settings: HookSettings) {
|
|||
},
|
||||
...(settings.config ?? {}),
|
||||
})
|
||||
|
||||
return { typegenModulePath }
|
||||
}
|
||||
|
||||
export function installGenerateTypegenHook(settings: HookSettings) {
|
||||
let typegenPath: string | null = null
|
||||
beforeAll(async () => {
|
||||
await generateTypegen(settings)
|
||||
const { typegenModulePath } = await generateTypegen(settings)
|
||||
|
||||
typegenPath = typegenModulePath
|
||||
})
|
||||
|
||||
afterAll(() => {
|
||||
writeFileSync(typegenPath!, '')
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,141 +0,0 @@
|
|||
/**
|
||||
* This file was generated by Nexus Schema
|
||||
* Do not make changes to this file directly
|
||||
*/
|
||||
|
||||
import { core } from '../../../../src'
|
||||
|
||||
declare global {
|
||||
interface NexusGen extends NexusGenTypes {}
|
||||
}
|
||||
|
||||
export interface NexusGenInputs {}
|
||||
|
||||
export interface NexusGenEnums {}
|
||||
|
||||
export interface NexusGenScalars {
|
||||
String: string
|
||||
Int: number
|
||||
Float: number
|
||||
Boolean: boolean
|
||||
ID: string
|
||||
}
|
||||
|
||||
export interface NexusGenRootTypes {
|
||||
A: {
|
||||
// root type
|
||||
name?: string | null // String
|
||||
}
|
||||
B: {
|
||||
// root type
|
||||
age?: number | null // Int
|
||||
}
|
||||
Query: {}
|
||||
Union: core.Discriminate<'A', 'required'> | core.Discriminate<'B', 'required'>
|
||||
}
|
||||
|
||||
export interface NexusGenAllTypes extends NexusGenRootTypes {
|
||||
String: NexusGenScalars['String']
|
||||
Int: NexusGenScalars['Int']
|
||||
Float: NexusGenScalars['Float']
|
||||
Boolean: NexusGenScalars['Boolean']
|
||||
ID: NexusGenScalars['ID']
|
||||
}
|
||||
|
||||
export interface NexusGenFieldTypes {
|
||||
A: {
|
||||
// field return type
|
||||
name: string | null // String
|
||||
}
|
||||
B: {
|
||||
// field return type
|
||||
age: number | null // Int
|
||||
}
|
||||
Query: {
|
||||
// field return type
|
||||
union: NexusGenRootTypes['Union'] | null // Union
|
||||
}
|
||||
}
|
||||
|
||||
export interface NexusGenFieldTypeNames {
|
||||
A: {
|
||||
// field return type name
|
||||
name: 'String'
|
||||
}
|
||||
B: {
|
||||
// field return type name
|
||||
age: 'Int'
|
||||
}
|
||||
Query: {
|
||||
// field return type name
|
||||
union: 'Union'
|
||||
}
|
||||
}
|
||||
|
||||
export interface NexusGenArgTypes {}
|
||||
|
||||
export interface NexusGenAbstractTypeMembers {
|
||||
Union: 'A' | 'B'
|
||||
}
|
||||
|
||||
export interface NexusGenInheritedFields {}
|
||||
|
||||
export type NexusGenObjectNames = 'A' | 'B' | 'Query'
|
||||
|
||||
export type NexusGenInputNames = never
|
||||
|
||||
export type NexusGenEnumNames = never
|
||||
|
||||
export type NexusGenInterfaceNames = never
|
||||
|
||||
export type NexusGenScalarNames = 'Boolean' | 'Float' | 'ID' | 'Int' | 'String'
|
||||
|
||||
export type NexusGenUnionNames = 'Union'
|
||||
|
||||
export type NexusGenObjectsUsingAbstractStrategyIsTypeOf = never
|
||||
|
||||
export type NexusGenAbstractsUsingStrategyResolveType = never
|
||||
|
||||
export type NexusGenFeaturesConfig = {
|
||||
abstractTypeStrategies: {
|
||||
resolveType: true
|
||||
isTypeOf: true
|
||||
__typename: true
|
||||
}
|
||||
}
|
||||
|
||||
export interface NexusGenTypes {
|
||||
context: any
|
||||
inputTypes: NexusGenInputs
|
||||
rootTypes: NexusGenRootTypes
|
||||
argTypes: NexusGenArgTypes
|
||||
fieldTypes: NexusGenFieldTypes
|
||||
fieldTypeNames: NexusGenFieldTypeNames
|
||||
allTypes: NexusGenAllTypes
|
||||
inheritedFields: NexusGenInheritedFields
|
||||
objectNames: NexusGenObjectNames
|
||||
inputNames: NexusGenInputNames
|
||||
enumNames: NexusGenEnumNames
|
||||
interfaceNames: NexusGenInterfaceNames
|
||||
scalarNames: NexusGenScalarNames
|
||||
unionNames: NexusGenUnionNames
|
||||
allInputTypes: NexusGenTypes['inputNames'] | NexusGenTypes['enumNames'] | NexusGenTypes['scalarNames']
|
||||
allOutputTypes:
|
||||
| NexusGenTypes['objectNames']
|
||||
| NexusGenTypes['enumNames']
|
||||
| NexusGenTypes['unionNames']
|
||||
| NexusGenTypes['interfaceNames']
|
||||
| NexusGenTypes['scalarNames']
|
||||
allNamedTypes: NexusGenTypes['allInputTypes'] | NexusGenTypes['allOutputTypes']
|
||||
abstractTypes: NexusGenTypes['interfaceNames'] | NexusGenTypes['unionNames']
|
||||
abstractTypeMembers: NexusGenAbstractTypeMembers
|
||||
objectsUsingAbstractStrategyIsTypeOf: NexusGenObjectsUsingAbstractStrategyIsTypeOf
|
||||
abstractsUsingStrategyResolveType: NexusGenAbstractsUsingStrategyResolveType
|
||||
features: NexusGenFeaturesConfig
|
||||
}
|
||||
|
||||
declare global {
|
||||
interface NexusGenPluginTypeConfig<TypeName extends string> {}
|
||||
interface NexusGenPluginFieldConfig<TypeName extends string, FieldName extends string> {}
|
||||
interface NexusGenPluginSchemaConfig {}
|
||||
}
|
||||
|
|
@ -1,139 +0,0 @@
|
|||
/**
|
||||
* This file was generated by Nexus Schema
|
||||
* Do not make changes to this file directly
|
||||
*/
|
||||
|
||||
declare global {
|
||||
interface NexusGen extends NexusGenTypes {}
|
||||
}
|
||||
|
||||
export interface NexusGenInputs {}
|
||||
|
||||
export interface NexusGenEnums {}
|
||||
|
||||
export interface NexusGenScalars {
|
||||
String: string
|
||||
Int: number
|
||||
Float: number
|
||||
Boolean: boolean
|
||||
ID: string
|
||||
}
|
||||
|
||||
export interface NexusGenRootTypes {
|
||||
A: {
|
||||
// root type
|
||||
name?: string | null // String
|
||||
}
|
||||
B: {
|
||||
// root type
|
||||
age?: number | null // Int
|
||||
}
|
||||
Query: {}
|
||||
Union: NexusGenRootTypes['A'] | NexusGenRootTypes['B']
|
||||
}
|
||||
|
||||
export interface NexusGenAllTypes extends NexusGenRootTypes {
|
||||
String: NexusGenScalars['String']
|
||||
Int: NexusGenScalars['Int']
|
||||
Float: NexusGenScalars['Float']
|
||||
Boolean: NexusGenScalars['Boolean']
|
||||
ID: NexusGenScalars['ID']
|
||||
}
|
||||
|
||||
export interface NexusGenFieldTypes {
|
||||
A: {
|
||||
// field return type
|
||||
name: string | null // String
|
||||
}
|
||||
B: {
|
||||
// field return type
|
||||
age: number | null // Int
|
||||
}
|
||||
Query: {
|
||||
// field return type
|
||||
union: NexusGenRootTypes['Union'] | null // Union
|
||||
}
|
||||
}
|
||||
|
||||
export interface NexusGenFieldTypeNames {
|
||||
A: {
|
||||
// field return type name
|
||||
name: 'String'
|
||||
}
|
||||
B: {
|
||||
// field return type name
|
||||
age: 'Int'
|
||||
}
|
||||
Query: {
|
||||
// field return type name
|
||||
union: 'Union'
|
||||
}
|
||||
}
|
||||
|
||||
export interface NexusGenArgTypes {}
|
||||
|
||||
export interface NexusGenAbstractTypeMembers {
|
||||
Union: 'A' | 'B'
|
||||
}
|
||||
|
||||
export interface NexusGenInheritedFields {}
|
||||
|
||||
export type NexusGenObjectNames = 'A' | 'B' | 'Query'
|
||||
|
||||
export type NexusGenInputNames = never
|
||||
|
||||
export type NexusGenEnumNames = never
|
||||
|
||||
export type NexusGenInterfaceNames = never
|
||||
|
||||
export type NexusGenScalarNames = 'Boolean' | 'Float' | 'ID' | 'Int' | 'String'
|
||||
|
||||
export type NexusGenUnionNames = 'Union'
|
||||
|
||||
export type NexusGenObjectsUsingAbstractStrategyIsTypeOf = 'A' | 'B'
|
||||
|
||||
export type NexusGenAbstractsUsingStrategyResolveType = never
|
||||
|
||||
export type NexusGenFeaturesConfig = {
|
||||
abstractTypeStrategies: {
|
||||
resolveType: true
|
||||
isTypeOf: true
|
||||
__typename: false
|
||||
}
|
||||
}
|
||||
|
||||
export interface NexusGenTypes {
|
||||
context: any
|
||||
inputTypes: NexusGenInputs
|
||||
rootTypes: NexusGenRootTypes
|
||||
argTypes: NexusGenArgTypes
|
||||
fieldTypes: NexusGenFieldTypes
|
||||
fieldTypeNames: NexusGenFieldTypeNames
|
||||
allTypes: NexusGenAllTypes
|
||||
inheritedFields: NexusGenInheritedFields
|
||||
objectNames: NexusGenObjectNames
|
||||
inputNames: NexusGenInputNames
|
||||
enumNames: NexusGenEnumNames
|
||||
interfaceNames: NexusGenInterfaceNames
|
||||
scalarNames: NexusGenScalarNames
|
||||
unionNames: NexusGenUnionNames
|
||||
allInputTypes: NexusGenTypes['inputNames'] | NexusGenTypes['enumNames'] | NexusGenTypes['scalarNames']
|
||||
allOutputTypes:
|
||||
| NexusGenTypes['objectNames']
|
||||
| NexusGenTypes['enumNames']
|
||||
| NexusGenTypes['unionNames']
|
||||
| NexusGenTypes['interfaceNames']
|
||||
| NexusGenTypes['scalarNames']
|
||||
allNamedTypes: NexusGenTypes['allInputTypes'] | NexusGenTypes['allOutputTypes']
|
||||
abstractTypes: NexusGenTypes['interfaceNames'] | NexusGenTypes['unionNames']
|
||||
abstractTypeMembers: NexusGenAbstractTypeMembers
|
||||
objectsUsingAbstractStrategyIsTypeOf: NexusGenObjectsUsingAbstractStrategyIsTypeOf
|
||||
abstractsUsingStrategyResolveType: NexusGenAbstractsUsingStrategyResolveType
|
||||
features: NexusGenFeaturesConfig
|
||||
}
|
||||
|
||||
declare global {
|
||||
interface NexusGenPluginTypeConfig<TypeName extends string> {}
|
||||
interface NexusGenPluginFieldConfig<TypeName extends string, FieldName extends string> {}
|
||||
interface NexusGenPluginSchemaConfig {}
|
||||
}
|
||||
|
|
@ -1,139 +0,0 @@
|
|||
/**
|
||||
* This file was generated by Nexus Schema
|
||||
* Do not make changes to this file directly
|
||||
*/
|
||||
|
||||
declare global {
|
||||
interface NexusGen extends NexusGenTypes {}
|
||||
}
|
||||
|
||||
export interface NexusGenInputs {}
|
||||
|
||||
export interface NexusGenEnums {}
|
||||
|
||||
export interface NexusGenScalars {
|
||||
String: string
|
||||
Int: number
|
||||
Float: number
|
||||
Boolean: boolean
|
||||
ID: string
|
||||
}
|
||||
|
||||
export interface NexusGenRootTypes {
|
||||
A: {
|
||||
// root type
|
||||
name?: string | null // String
|
||||
}
|
||||
B: {
|
||||
// root type
|
||||
age?: number | null // Int
|
||||
}
|
||||
Query: {}
|
||||
Union: NexusGenRootTypes['A'] | NexusGenRootTypes['B']
|
||||
}
|
||||
|
||||
export interface NexusGenAllTypes extends NexusGenRootTypes {
|
||||
String: NexusGenScalars['String']
|
||||
Int: NexusGenScalars['Int']
|
||||
Float: NexusGenScalars['Float']
|
||||
Boolean: NexusGenScalars['Boolean']
|
||||
ID: NexusGenScalars['ID']
|
||||
}
|
||||
|
||||
export interface NexusGenFieldTypes {
|
||||
A: {
|
||||
// field return type
|
||||
name: string | null // String
|
||||
}
|
||||
B: {
|
||||
// field return type
|
||||
age: number | null // Int
|
||||
}
|
||||
Query: {
|
||||
// field return type
|
||||
union: NexusGenRootTypes['Union'] | null // Union
|
||||
}
|
||||
}
|
||||
|
||||
export interface NexusGenFieldTypeNames {
|
||||
A: {
|
||||
// field return type name
|
||||
name: 'String'
|
||||
}
|
||||
B: {
|
||||
// field return type name
|
||||
age: 'Int'
|
||||
}
|
||||
Query: {
|
||||
// field return type name
|
||||
union: 'Union'
|
||||
}
|
||||
}
|
||||
|
||||
export interface NexusGenArgTypes {}
|
||||
|
||||
export interface NexusGenAbstractTypeMembers {
|
||||
Union: 'A' | 'B'
|
||||
}
|
||||
|
||||
export interface NexusGenInheritedFields {}
|
||||
|
||||
export type NexusGenObjectNames = 'A' | 'B' | 'Query'
|
||||
|
||||
export type NexusGenInputNames = never
|
||||
|
||||
export type NexusGenEnumNames = never
|
||||
|
||||
export type NexusGenInterfaceNames = never
|
||||
|
||||
export type NexusGenScalarNames = 'Boolean' | 'Float' | 'ID' | 'Int' | 'String'
|
||||
|
||||
export type NexusGenUnionNames = 'Union'
|
||||
|
||||
export type NexusGenObjectsUsingAbstractStrategyIsTypeOf = 'A'
|
||||
|
||||
export type NexusGenAbstractsUsingStrategyResolveType = never
|
||||
|
||||
export type NexusGenFeaturesConfig = {
|
||||
abstractTypeStrategies: {
|
||||
isTypeOf: true
|
||||
__typename: false
|
||||
resolveType: false
|
||||
}
|
||||
}
|
||||
|
||||
export interface NexusGenTypes {
|
||||
context: any
|
||||
inputTypes: NexusGenInputs
|
||||
rootTypes: NexusGenRootTypes
|
||||
argTypes: NexusGenArgTypes
|
||||
fieldTypes: NexusGenFieldTypes
|
||||
fieldTypeNames: NexusGenFieldTypeNames
|
||||
allTypes: NexusGenAllTypes
|
||||
inheritedFields: NexusGenInheritedFields
|
||||
objectNames: NexusGenObjectNames
|
||||
inputNames: NexusGenInputNames
|
||||
enumNames: NexusGenEnumNames
|
||||
interfaceNames: NexusGenInterfaceNames
|
||||
scalarNames: NexusGenScalarNames
|
||||
unionNames: NexusGenUnionNames
|
||||
allInputTypes: NexusGenTypes['inputNames'] | NexusGenTypes['enumNames'] | NexusGenTypes['scalarNames']
|
||||
allOutputTypes:
|
||||
| NexusGenTypes['objectNames']
|
||||
| NexusGenTypes['enumNames']
|
||||
| NexusGenTypes['unionNames']
|
||||
| NexusGenTypes['interfaceNames']
|
||||
| NexusGenTypes['scalarNames']
|
||||
allNamedTypes: NexusGenTypes['allInputTypes'] | NexusGenTypes['allOutputTypes']
|
||||
abstractTypes: NexusGenTypes['interfaceNames'] | NexusGenTypes['unionNames']
|
||||
abstractTypeMembers: NexusGenAbstractTypeMembers
|
||||
objectsUsingAbstractStrategyIsTypeOf: NexusGenObjectsUsingAbstractStrategyIsTypeOf
|
||||
abstractsUsingStrategyResolveType: NexusGenAbstractsUsingStrategyResolveType
|
||||
features: NexusGenFeaturesConfig
|
||||
}
|
||||
|
||||
declare global {
|
||||
interface NexusGenPluginTypeConfig<TypeName extends string> {}
|
||||
interface NexusGenPluginFieldConfig<TypeName extends string, FieldName extends string> {}
|
||||
interface NexusGenPluginSchemaConfig {}
|
||||
}
|
||||
|
|
@ -1,139 +0,0 @@
|
|||
/**
|
||||
* This file was generated by Nexus Schema
|
||||
* Do not make changes to this file directly
|
||||
*/
|
||||
|
||||
declare global {
|
||||
interface NexusGen extends NexusGenTypes {}
|
||||
}
|
||||
|
||||
export interface NexusGenInputs {}
|
||||
|
||||
export interface NexusGenEnums {}
|
||||
|
||||
export interface NexusGenScalars {
|
||||
String: string
|
||||
Int: number
|
||||
Float: number
|
||||
Boolean: boolean
|
||||
ID: string
|
||||
}
|
||||
|
||||
export interface NexusGenRootTypes {
|
||||
A: {
|
||||
// root type
|
||||
name?: string | null // String
|
||||
}
|
||||
B: {
|
||||
// root type
|
||||
age?: number | null // Int
|
||||
}
|
||||
Query: {}
|
||||
Union: NexusGenRootTypes['A'] | NexusGenRootTypes['B']
|
||||
}
|
||||
|
||||
export interface NexusGenAllTypes extends NexusGenRootTypes {
|
||||
String: NexusGenScalars['String']
|
||||
Int: NexusGenScalars['Int']
|
||||
Float: NexusGenScalars['Float']
|
||||
Boolean: NexusGenScalars['Boolean']
|
||||
ID: NexusGenScalars['ID']
|
||||
}
|
||||
|
||||
export interface NexusGenFieldTypes {
|
||||
A: {
|
||||
// field return type
|
||||
name: string | null // String
|
||||
}
|
||||
B: {
|
||||
// field return type
|
||||
age: number | null // Int
|
||||
}
|
||||
Query: {
|
||||
// field return type
|
||||
union: NexusGenRootTypes['Union'] | null // Union
|
||||
}
|
||||
}
|
||||
|
||||
export interface NexusGenFieldTypeNames {
|
||||
A: {
|
||||
// field return type name
|
||||
name: 'String'
|
||||
}
|
||||
B: {
|
||||
// field return type name
|
||||
age: 'Int'
|
||||
}
|
||||
Query: {
|
||||
// field return type name
|
||||
union: 'Union'
|
||||
}
|
||||
}
|
||||
|
||||
export interface NexusGenArgTypes {}
|
||||
|
||||
export interface NexusGenAbstractTypeMembers {
|
||||
Union: 'A' | 'B'
|
||||
}
|
||||
|
||||
export interface NexusGenInheritedFields {}
|
||||
|
||||
export type NexusGenObjectNames = 'A' | 'B' | 'Query'
|
||||
|
||||
export type NexusGenInputNames = never
|
||||
|
||||
export type NexusGenEnumNames = never
|
||||
|
||||
export type NexusGenInterfaceNames = never
|
||||
|
||||
export type NexusGenScalarNames = 'Boolean' | 'Float' | 'ID' | 'Int' | 'String'
|
||||
|
||||
export type NexusGenUnionNames = 'Union'
|
||||
|
||||
export type NexusGenObjectsUsingAbstractStrategyIsTypeOf = never
|
||||
|
||||
export type NexusGenAbstractsUsingStrategyResolveType = never
|
||||
|
||||
export type NexusGenFeaturesConfig = {
|
||||
abstractTypeStrategies: {
|
||||
resolveType: true
|
||||
__typename: false
|
||||
isTypeOf: false
|
||||
}
|
||||
}
|
||||
|
||||
export interface NexusGenTypes {
|
||||
context: any
|
||||
inputTypes: NexusGenInputs
|
||||
rootTypes: NexusGenRootTypes
|
||||
argTypes: NexusGenArgTypes
|
||||
fieldTypes: NexusGenFieldTypes
|
||||
fieldTypeNames: NexusGenFieldTypeNames
|
||||
allTypes: NexusGenAllTypes
|
||||
inheritedFields: NexusGenInheritedFields
|
||||
objectNames: NexusGenObjectNames
|
||||
inputNames: NexusGenInputNames
|
||||
enumNames: NexusGenEnumNames
|
||||
interfaceNames: NexusGenInterfaceNames
|
||||
scalarNames: NexusGenScalarNames
|
||||
unionNames: NexusGenUnionNames
|
||||
allInputTypes: NexusGenTypes['inputNames'] | NexusGenTypes['enumNames'] | NexusGenTypes['scalarNames']
|
||||
allOutputTypes:
|
||||
| NexusGenTypes['objectNames']
|
||||
| NexusGenTypes['enumNames']
|
||||
| NexusGenTypes['unionNames']
|
||||
| NexusGenTypes['interfaceNames']
|
||||
| NexusGenTypes['scalarNames']
|
||||
allNamedTypes: NexusGenTypes['allInputTypes'] | NexusGenTypes['allOutputTypes']
|
||||
abstractTypes: NexusGenTypes['interfaceNames'] | NexusGenTypes['unionNames']
|
||||
abstractTypeMembers: NexusGenAbstractTypeMembers
|
||||
objectsUsingAbstractStrategyIsTypeOf: NexusGenObjectsUsingAbstractStrategyIsTypeOf
|
||||
abstractsUsingStrategyResolveType: NexusGenAbstractsUsingStrategyResolveType
|
||||
features: NexusGenFeaturesConfig
|
||||
}
|
||||
|
||||
declare global {
|
||||
interface NexusGenPluginTypeConfig<TypeName extends string> {}
|
||||
interface NexusGenPluginFieldConfig<TypeName extends string, FieldName extends string> {}
|
||||
interface NexusGenPluginSchemaConfig {}
|
||||
}
|
||||
|
|
@ -1,129 +0,0 @@
|
|||
/**
|
||||
* This file was generated by Nexus Schema
|
||||
* Do not make changes to this file directly
|
||||
*/
|
||||
|
||||
declare global {
|
||||
interface NexusGen extends NexusGenTypes {}
|
||||
}
|
||||
|
||||
export interface NexusGenInputs {}
|
||||
|
||||
export interface NexusGenEnums {}
|
||||
|
||||
export interface NexusGenScalars {
|
||||
String: string
|
||||
Int: number
|
||||
Float: number
|
||||
Boolean: boolean
|
||||
ID: string
|
||||
}
|
||||
|
||||
export interface NexusGenRootTypes {
|
||||
A: {
|
||||
// root type
|
||||
name?: string | null // String
|
||||
}
|
||||
Query: {}
|
||||
U1: NexusGenRootTypes['A']
|
||||
U2: NexusGenRootTypes['A']
|
||||
}
|
||||
|
||||
export interface NexusGenAllTypes extends NexusGenRootTypes {
|
||||
String: NexusGenScalars['String']
|
||||
Int: NexusGenScalars['Int']
|
||||
Float: NexusGenScalars['Float']
|
||||
Boolean: NexusGenScalars['Boolean']
|
||||
ID: NexusGenScalars['ID']
|
||||
}
|
||||
|
||||
export interface NexusGenFieldTypes {
|
||||
A: {
|
||||
// field return type
|
||||
name: string | null // String
|
||||
}
|
||||
Query: {
|
||||
// field return type
|
||||
ok: boolean // Boolean!
|
||||
}
|
||||
}
|
||||
|
||||
export interface NexusGenFieldTypeNames {
|
||||
A: {
|
||||
// field return type name
|
||||
name: 'String'
|
||||
}
|
||||
Query: {
|
||||
// field return type name
|
||||
ok: 'Boolean'
|
||||
}
|
||||
}
|
||||
|
||||
export interface NexusGenArgTypes {}
|
||||
|
||||
export interface NexusGenAbstractTypeMembers {
|
||||
U1: 'A'
|
||||
U2: 'A'
|
||||
}
|
||||
|
||||
export interface NexusGenInheritedFields {}
|
||||
|
||||
export type NexusGenObjectNames = 'A' | 'Query'
|
||||
|
||||
export type NexusGenInputNames = never
|
||||
|
||||
export type NexusGenEnumNames = never
|
||||
|
||||
export type NexusGenInterfaceNames = never
|
||||
|
||||
export type NexusGenScalarNames = 'Boolean' | 'Float' | 'ID' | 'Int' | 'String'
|
||||
|
||||
export type NexusGenUnionNames = 'U1' | 'U2'
|
||||
|
||||
export type NexusGenObjectsUsingAbstractStrategyIsTypeOf = never
|
||||
|
||||
export type NexusGenAbstractsUsingStrategyResolveType = 'U1'
|
||||
|
||||
export type NexusGenFeaturesConfig = {
|
||||
abstractTypeStrategies: {
|
||||
resolveType: true
|
||||
isTypeOf: true
|
||||
__typename: false
|
||||
}
|
||||
}
|
||||
|
||||
export interface NexusGenTypes {
|
||||
context: any
|
||||
inputTypes: NexusGenInputs
|
||||
rootTypes: NexusGenRootTypes
|
||||
argTypes: NexusGenArgTypes
|
||||
fieldTypes: NexusGenFieldTypes
|
||||
fieldTypeNames: NexusGenFieldTypeNames
|
||||
allTypes: NexusGenAllTypes
|
||||
inheritedFields: NexusGenInheritedFields
|
||||
objectNames: NexusGenObjectNames
|
||||
inputNames: NexusGenInputNames
|
||||
enumNames: NexusGenEnumNames
|
||||
interfaceNames: NexusGenInterfaceNames
|
||||
scalarNames: NexusGenScalarNames
|
||||
unionNames: NexusGenUnionNames
|
||||
allInputTypes: NexusGenTypes['inputNames'] | NexusGenTypes['enumNames'] | NexusGenTypes['scalarNames']
|
||||
allOutputTypes:
|
||||
| NexusGenTypes['objectNames']
|
||||
| NexusGenTypes['enumNames']
|
||||
| NexusGenTypes['unionNames']
|
||||
| NexusGenTypes['interfaceNames']
|
||||
| NexusGenTypes['scalarNames']
|
||||
allNamedTypes: NexusGenTypes['allInputTypes'] | NexusGenTypes['allOutputTypes']
|
||||
abstractTypes: NexusGenTypes['interfaceNames'] | NexusGenTypes['unionNames']
|
||||
abstractTypeMembers: NexusGenAbstractTypeMembers
|
||||
objectsUsingAbstractStrategyIsTypeOf: NexusGenObjectsUsingAbstractStrategyIsTypeOf
|
||||
abstractsUsingStrategyResolveType: NexusGenAbstractsUsingStrategyResolveType
|
||||
features: NexusGenFeaturesConfig
|
||||
}
|
||||
|
||||
declare global {
|
||||
interface NexusGenPluginTypeConfig<TypeName extends string> {}
|
||||
interface NexusGenPluginFieldConfig<TypeName extends string, FieldName extends string> {}
|
||||
interface NexusGenPluginSchemaConfig {}
|
||||
}
|
||||
|
|
@ -1,141 +0,0 @@
|
|||
/**
|
||||
* This file was generated by Nexus Schema
|
||||
* Do not make changes to this file directly
|
||||
*/
|
||||
|
||||
import { core } from '../../../../src'
|
||||
|
||||
declare global {
|
||||
interface NexusGen extends NexusGenTypes {}
|
||||
}
|
||||
|
||||
export interface NexusGenInputs {}
|
||||
|
||||
export interface NexusGenEnums {}
|
||||
|
||||
export interface NexusGenScalars {
|
||||
String: string
|
||||
Int: number
|
||||
Float: number
|
||||
Boolean: boolean
|
||||
ID: string
|
||||
}
|
||||
|
||||
export interface NexusGenRootTypes {
|
||||
A: {
|
||||
// root type
|
||||
name?: string | null // String
|
||||
}
|
||||
B: {
|
||||
// root type
|
||||
age?: number | null // Int
|
||||
}
|
||||
Query: {}
|
||||
Union: core.Discriminate<'A', 'required'> | core.Discriminate<'B', 'required'>
|
||||
}
|
||||
|
||||
export interface NexusGenAllTypes extends NexusGenRootTypes {
|
||||
String: NexusGenScalars['String']
|
||||
Int: NexusGenScalars['Int']
|
||||
Float: NexusGenScalars['Float']
|
||||
Boolean: NexusGenScalars['Boolean']
|
||||
ID: NexusGenScalars['ID']
|
||||
}
|
||||
|
||||
export interface NexusGenFieldTypes {
|
||||
A: {
|
||||
// field return type
|
||||
name: string | null // String
|
||||
}
|
||||
B: {
|
||||
// field return type
|
||||
age: number | null // Int
|
||||
}
|
||||
Query: {
|
||||
// field return type
|
||||
union: NexusGenRootTypes['Union'] | null // Union
|
||||
}
|
||||
}
|
||||
|
||||
export interface NexusGenFieldTypeNames {
|
||||
A: {
|
||||
// field return type name
|
||||
name: 'String'
|
||||
}
|
||||
B: {
|
||||
// field return type name
|
||||
age: 'Int'
|
||||
}
|
||||
Query: {
|
||||
// field return type name
|
||||
union: 'Union'
|
||||
}
|
||||
}
|
||||
|
||||
export interface NexusGenArgTypes {}
|
||||
|
||||
export interface NexusGenAbstractTypeMembers {
|
||||
Union: 'A' | 'B'
|
||||
}
|
||||
|
||||
export interface NexusGenInheritedFields {}
|
||||
|
||||
export type NexusGenObjectNames = 'A' | 'B' | 'Query'
|
||||
|
||||
export type NexusGenInputNames = never
|
||||
|
||||
export type NexusGenEnumNames = never
|
||||
|
||||
export type NexusGenInterfaceNames = never
|
||||
|
||||
export type NexusGenScalarNames = 'Boolean' | 'Float' | 'ID' | 'Int' | 'String'
|
||||
|
||||
export type NexusGenUnionNames = 'Union'
|
||||
|
||||
export type NexusGenObjectsUsingAbstractStrategyIsTypeOf = never
|
||||
|
||||
export type NexusGenAbstractsUsingStrategyResolveType = never
|
||||
|
||||
export type NexusGenFeaturesConfig = {
|
||||
abstractTypeStrategies: {
|
||||
__typename: true
|
||||
isTypeOf: false
|
||||
resolveType: false
|
||||
}
|
||||
}
|
||||
|
||||
export interface NexusGenTypes {
|
||||
context: any
|
||||
inputTypes: NexusGenInputs
|
||||
rootTypes: NexusGenRootTypes
|
||||
argTypes: NexusGenArgTypes
|
||||
fieldTypes: NexusGenFieldTypes
|
||||
fieldTypeNames: NexusGenFieldTypeNames
|
||||
allTypes: NexusGenAllTypes
|
||||
inheritedFields: NexusGenInheritedFields
|
||||
objectNames: NexusGenObjectNames
|
||||
inputNames: NexusGenInputNames
|
||||
enumNames: NexusGenEnumNames
|
||||
interfaceNames: NexusGenInterfaceNames
|
||||
scalarNames: NexusGenScalarNames
|
||||
unionNames: NexusGenUnionNames
|
||||
allInputTypes: NexusGenTypes['inputNames'] | NexusGenTypes['enumNames'] | NexusGenTypes['scalarNames']
|
||||
allOutputTypes:
|
||||
| NexusGenTypes['objectNames']
|
||||
| NexusGenTypes['enumNames']
|
||||
| NexusGenTypes['unionNames']
|
||||
| NexusGenTypes['interfaceNames']
|
||||
| NexusGenTypes['scalarNames']
|
||||
allNamedTypes: NexusGenTypes['allInputTypes'] | NexusGenTypes['allOutputTypes']
|
||||
abstractTypes: NexusGenTypes['interfaceNames'] | NexusGenTypes['unionNames']
|
||||
abstractTypeMembers: NexusGenAbstractTypeMembers
|
||||
objectsUsingAbstractStrategyIsTypeOf: NexusGenObjectsUsingAbstractStrategyIsTypeOf
|
||||
abstractsUsingStrategyResolveType: NexusGenAbstractsUsingStrategyResolveType
|
||||
features: NexusGenFeaturesConfig
|
||||
}
|
||||
|
||||
declare global {
|
||||
interface NexusGenPluginTypeConfig<TypeName extends string> {}
|
||||
interface NexusGenPluginFieldConfig<TypeName extends string, FieldName extends string> {}
|
||||
interface NexusGenPluginSchemaConfig {}
|
||||
}
|
||||
|
|
@ -1,139 +0,0 @@
|
|||
/**
|
||||
* This file was generated by Nexus Schema
|
||||
* Do not make changes to this file directly
|
||||
*/
|
||||
|
||||
declare global {
|
||||
interface NexusGen extends NexusGenTypes {}
|
||||
}
|
||||
|
||||
export interface NexusGenInputs {}
|
||||
|
||||
export interface NexusGenEnums {}
|
||||
|
||||
export interface NexusGenScalars {
|
||||
String: string
|
||||
Int: number
|
||||
Float: number
|
||||
Boolean: boolean
|
||||
ID: string
|
||||
}
|
||||
|
||||
export interface NexusGenRootTypes {
|
||||
A: {
|
||||
// root type
|
||||
name?: string | null // String
|
||||
}
|
||||
B: {
|
||||
// root type
|
||||
age?: number | null // Int
|
||||
}
|
||||
Query: {}
|
||||
Union: NexusGenRootTypes['A'] | NexusGenRootTypes['B']
|
||||
}
|
||||
|
||||
export interface NexusGenAllTypes extends NexusGenRootTypes {
|
||||
String: NexusGenScalars['String']
|
||||
Int: NexusGenScalars['Int']
|
||||
Float: NexusGenScalars['Float']
|
||||
Boolean: NexusGenScalars['Boolean']
|
||||
ID: NexusGenScalars['ID']
|
||||
}
|
||||
|
||||
export interface NexusGenFieldTypes {
|
||||
A: {
|
||||
// field return type
|
||||
name: string | null // String
|
||||
}
|
||||
B: {
|
||||
// field return type
|
||||
age: number | null // Int
|
||||
}
|
||||
Query: {
|
||||
// field return type
|
||||
union: NexusGenRootTypes['Union'] | null // Union
|
||||
}
|
||||
}
|
||||
|
||||
export interface NexusGenFieldTypeNames {
|
||||
A: {
|
||||
// field return type name
|
||||
name: 'String'
|
||||
}
|
||||
B: {
|
||||
// field return type name
|
||||
age: 'Int'
|
||||
}
|
||||
Query: {
|
||||
// field return type name
|
||||
union: 'Union'
|
||||
}
|
||||
}
|
||||
|
||||
export interface NexusGenArgTypes {}
|
||||
|
||||
export interface NexusGenAbstractTypeMembers {
|
||||
Union: 'A' | 'B'
|
||||
}
|
||||
|
||||
export interface NexusGenInheritedFields {}
|
||||
|
||||
export type NexusGenObjectNames = 'A' | 'B' | 'Query'
|
||||
|
||||
export type NexusGenInputNames = never
|
||||
|
||||
export type NexusGenEnumNames = never
|
||||
|
||||
export type NexusGenInterfaceNames = never
|
||||
|
||||
export type NexusGenScalarNames = 'Boolean' | 'Float' | 'ID' | 'Int' | 'String'
|
||||
|
||||
export type NexusGenUnionNames = 'Union'
|
||||
|
||||
export type NexusGenObjectsUsingAbstractStrategyIsTypeOf = never
|
||||
|
||||
export type NexusGenAbstractsUsingStrategyResolveType = 'Union'
|
||||
|
||||
export type NexusGenFeaturesConfig = {
|
||||
abstractTypeStrategies: {
|
||||
resolveType: true
|
||||
isTypeOf: true
|
||||
__typename: false
|
||||
}
|
||||
}
|
||||
|
||||
export interface NexusGenTypes {
|
||||
context: any
|
||||
inputTypes: NexusGenInputs
|
||||
rootTypes: NexusGenRootTypes
|
||||
argTypes: NexusGenArgTypes
|
||||
fieldTypes: NexusGenFieldTypes
|
||||
fieldTypeNames: NexusGenFieldTypeNames
|
||||
allTypes: NexusGenAllTypes
|
||||
inheritedFields: NexusGenInheritedFields
|
||||
objectNames: NexusGenObjectNames
|
||||
inputNames: NexusGenInputNames
|
||||
enumNames: NexusGenEnumNames
|
||||
interfaceNames: NexusGenInterfaceNames
|
||||
scalarNames: NexusGenScalarNames
|
||||
unionNames: NexusGenUnionNames
|
||||
allInputTypes: NexusGenTypes['inputNames'] | NexusGenTypes['enumNames'] | NexusGenTypes['scalarNames']
|
||||
allOutputTypes:
|
||||
| NexusGenTypes['objectNames']
|
||||
| NexusGenTypes['enumNames']
|
||||
| NexusGenTypes['unionNames']
|
||||
| NexusGenTypes['interfaceNames']
|
||||
| NexusGenTypes['scalarNames']
|
||||
allNamedTypes: NexusGenTypes['allInputTypes'] | NexusGenTypes['allOutputTypes']
|
||||
abstractTypes: NexusGenTypes['interfaceNames'] | NexusGenTypes['unionNames']
|
||||
abstractTypeMembers: NexusGenAbstractTypeMembers
|
||||
objectsUsingAbstractStrategyIsTypeOf: NexusGenObjectsUsingAbstractStrategyIsTypeOf
|
||||
abstractsUsingStrategyResolveType: NexusGenAbstractsUsingStrategyResolveType
|
||||
features: NexusGenFeaturesConfig
|
||||
}
|
||||
|
||||
declare global {
|
||||
interface NexusGenPluginTypeConfig<TypeName extends string> {}
|
||||
interface NexusGenPluginFieldConfig<TypeName extends string, FieldName extends string> {}
|
||||
interface NexusGenPluginSchemaConfig {}
|
||||
}
|
||||
|
|
@ -1,251 +0,0 @@
|
|||
/**
|
||||
* This file was generated by Nexus Schema
|
||||
* Do not make changes to this file directly
|
||||
*/
|
||||
|
||||
import { core } from '../../../src'
|
||||
declare global {
|
||||
interface NexusGenCustomInputMethods<TypeName extends string> {
|
||||
title(...args: any): void
|
||||
}
|
||||
}
|
||||
declare global {
|
||||
interface NexusGenCustomOutputMethods<TypeName extends string> {
|
||||
title(options: { escape: boolean }): void
|
||||
}
|
||||
}
|
||||
declare global {
|
||||
interface NexusGenCustomOutputProperties<TypeName extends string> {
|
||||
body: any
|
||||
}
|
||||
}
|
||||
|
||||
declare global {
|
||||
interface NexusGen extends NexusGenTypes {}
|
||||
}
|
||||
|
||||
export interface NexusGenInputs {
|
||||
PostSearchInput: {
|
||||
// input type
|
||||
body?: string | null // String
|
||||
title?: string | null // String
|
||||
}
|
||||
}
|
||||
|
||||
export interface NexusGenEnums {}
|
||||
|
||||
export interface NexusGenScalars {
|
||||
String: string
|
||||
Int: number
|
||||
Float: number
|
||||
Boolean: boolean
|
||||
ID: string
|
||||
}
|
||||
|
||||
export interface NexusGenRootTypes {
|
||||
Mutation: {}
|
||||
OfI: {
|
||||
// root type
|
||||
hello?: string | null // String
|
||||
}
|
||||
OfI2: {
|
||||
// root type
|
||||
hello?: string | null // String
|
||||
}
|
||||
Post: {
|
||||
// root type
|
||||
body?: string | null // String
|
||||
title?: string | null // String
|
||||
}
|
||||
Query: {}
|
||||
Subscription: {}
|
||||
User: { firstName: string; lastName: string }
|
||||
I: NexusGenRootTypes['OfI'] | NexusGenRootTypes['OfI2']
|
||||
}
|
||||
|
||||
export interface NexusGenAllTypes extends NexusGenRootTypes {
|
||||
PostSearchInput: NexusGenInputs['PostSearchInput']
|
||||
String: NexusGenScalars['String']
|
||||
Int: NexusGenScalars['Int']
|
||||
Float: NexusGenScalars['Float']
|
||||
Boolean: NexusGenScalars['Boolean']
|
||||
ID: NexusGenScalars['ID']
|
||||
}
|
||||
|
||||
export interface NexusGenFieldTypes {
|
||||
Mutation: {
|
||||
// field return type
|
||||
createUser: NexusGenRootTypes['User'] | null // User
|
||||
}
|
||||
OfI: {
|
||||
// field return type
|
||||
hello: string | null // String
|
||||
}
|
||||
OfI2: {
|
||||
// field return type
|
||||
hello: string | null // String
|
||||
}
|
||||
Post: {
|
||||
// field return type
|
||||
body: string | null // String
|
||||
title: string | null // String
|
||||
}
|
||||
Query: {
|
||||
// field return type
|
||||
foo: string | null // String
|
||||
searchPosts: Array<NexusGenRootTypes['Post'] | null> | null // [Post]
|
||||
user: NexusGenRootTypes['User'] | null // User
|
||||
}
|
||||
Subscription: {
|
||||
// field return type
|
||||
someBoolean: boolean | null // Boolean
|
||||
someField: number | null // Int
|
||||
someFields: Array<number | null> | null // [Int]
|
||||
someFloat: number | null // Float
|
||||
someID: string | null // ID
|
||||
someInt: number | null // Int
|
||||
someInts: Array<number | null> | null // [Int]
|
||||
someString: string | null // String
|
||||
}
|
||||
User: {
|
||||
// field return type
|
||||
firstName: string | null // String
|
||||
lastName: string | null // String
|
||||
}
|
||||
I: {
|
||||
// field return type
|
||||
hello: string | null // String
|
||||
}
|
||||
}
|
||||
|
||||
export interface NexusGenFieldTypeNames {
|
||||
Mutation: {
|
||||
// field return type name
|
||||
createUser: 'User'
|
||||
}
|
||||
OfI: {
|
||||
// field return type name
|
||||
hello: 'String'
|
||||
}
|
||||
OfI2: {
|
||||
// field return type name
|
||||
hello: 'String'
|
||||
}
|
||||
Post: {
|
||||
// field return type name
|
||||
body: 'String'
|
||||
title: 'String'
|
||||
}
|
||||
Query: {
|
||||
// field return type name
|
||||
foo: 'String'
|
||||
searchPosts: 'Post'
|
||||
user: 'User'
|
||||
}
|
||||
Subscription: {
|
||||
// field return type name
|
||||
someBoolean: 'Boolean'
|
||||
someField: 'Int'
|
||||
someFields: 'Int'
|
||||
someFloat: 'Float'
|
||||
someID: 'ID'
|
||||
someInt: 'Int'
|
||||
someInts: 'Int'
|
||||
someString: 'String'
|
||||
}
|
||||
User: {
|
||||
// field return type name
|
||||
firstName: 'String'
|
||||
lastName: 'String'
|
||||
}
|
||||
I: {
|
||||
// field return type name
|
||||
hello: 'String'
|
||||
}
|
||||
}
|
||||
|
||||
export interface NexusGenArgTypes {
|
||||
Mutation: {
|
||||
createUser: {
|
||||
// args
|
||||
firstName?: string | null // String
|
||||
lastName?: string | null // String
|
||||
}
|
||||
}
|
||||
Query: {
|
||||
searchPosts: {
|
||||
// args
|
||||
input?: NexusGenInputs['PostSearchInput'] | null // PostSearchInput
|
||||
}
|
||||
user: {
|
||||
// args
|
||||
id?: string | null // ID
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export interface NexusGenAbstractTypeMembers {
|
||||
I: 'OfI' | 'OfI2'
|
||||
}
|
||||
|
||||
export interface NexusGenInheritedFields {}
|
||||
|
||||
export type NexusGenObjectNames = 'Mutation' | 'OfI' | 'OfI2' | 'Post' | 'Query' | 'Subscription' | 'User'
|
||||
|
||||
export type NexusGenInputNames = 'PostSearchInput'
|
||||
|
||||
export type NexusGenEnumNames = never
|
||||
|
||||
export type NexusGenInterfaceNames = 'I'
|
||||
|
||||
export type NexusGenScalarNames = 'Boolean' | 'Float' | 'ID' | 'Int' | 'String'
|
||||
|
||||
export type NexusGenUnionNames = never
|
||||
|
||||
export type NexusGenObjectsUsingAbstractStrategyIsTypeOf = never
|
||||
|
||||
export type NexusGenAbstractsUsingStrategyResolveType = 'I'
|
||||
|
||||
export type NexusGenFeaturesConfig = {
|
||||
abstractTypeStrategies: {
|
||||
resolveType: true
|
||||
__typename: false
|
||||
isTypeOf: false
|
||||
}
|
||||
}
|
||||
|
||||
export interface NexusGenTypes {
|
||||
context: any
|
||||
inputTypes: NexusGenInputs
|
||||
rootTypes: NexusGenRootTypes
|
||||
argTypes: NexusGenArgTypes
|
||||
fieldTypes: NexusGenFieldTypes
|
||||
fieldTypeNames: NexusGenFieldTypeNames
|
||||
allTypes: NexusGenAllTypes
|
||||
inheritedFields: NexusGenInheritedFields
|
||||
objectNames: NexusGenObjectNames
|
||||
inputNames: NexusGenInputNames
|
||||
enumNames: NexusGenEnumNames
|
||||
interfaceNames: NexusGenInterfaceNames
|
||||
scalarNames: NexusGenScalarNames
|
||||
unionNames: NexusGenUnionNames
|
||||
allInputTypes: NexusGenTypes['inputNames'] | NexusGenTypes['enumNames'] | NexusGenTypes['scalarNames']
|
||||
allOutputTypes:
|
||||
| NexusGenTypes['objectNames']
|
||||
| NexusGenTypes['enumNames']
|
||||
| NexusGenTypes['unionNames']
|
||||
| NexusGenTypes['interfaceNames']
|
||||
| NexusGenTypes['scalarNames']
|
||||
allNamedTypes: NexusGenTypes['allInputTypes'] | NexusGenTypes['allOutputTypes']
|
||||
abstractTypes: NexusGenTypes['interfaceNames'] | NexusGenTypes['unionNames']
|
||||
abstractTypeMembers: NexusGenAbstractTypeMembers
|
||||
objectsUsingAbstractStrategyIsTypeOf: NexusGenObjectsUsingAbstractStrategyIsTypeOf
|
||||
abstractsUsingStrategyResolveType: NexusGenAbstractsUsingStrategyResolveType
|
||||
features: NexusGenFeaturesConfig
|
||||
}
|
||||
|
||||
declare global {
|
||||
interface NexusGenPluginTypeConfig<TypeName extends string> {}
|
||||
interface NexusGenPluginFieldConfig<TypeName extends string, FieldName extends string> {}
|
||||
interface NexusGenPluginSchemaConfig {}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
|
|
@ -1,200 +0,0 @@
|
|||
/**
|
||||
* This file was generated by Nexus Schema
|
||||
* Do not make changes to this file directly
|
||||
*/
|
||||
|
||||
declare global {
|
||||
interface NexusGenCustomInputMethods<TypeName extends string> {
|
||||
title(...args: any): void
|
||||
}
|
||||
}
|
||||
declare global {
|
||||
interface NexusGenCustomOutputMethods<TypeName extends string> {
|
||||
title(options: { escape: boolean }): void
|
||||
}
|
||||
}
|
||||
declare global {
|
||||
interface NexusGenCustomOutputProperties<TypeName extends string> {
|
||||
body: any
|
||||
}
|
||||
}
|
||||
|
||||
declare global {
|
||||
interface NexusGen extends NexusGenTypes {}
|
||||
}
|
||||
|
||||
export interface NexusGenInputs {
|
||||
PostSearchInput: {
|
||||
// input type
|
||||
body?: string | null // String
|
||||
title?: string | null // String
|
||||
}
|
||||
}
|
||||
|
||||
export interface NexusGenEnums {}
|
||||
|
||||
export interface NexusGenScalars {
|
||||
String: string
|
||||
Int: number
|
||||
Float: number
|
||||
Boolean: boolean
|
||||
ID: string
|
||||
}
|
||||
|
||||
export interface NexusGenRootTypes {
|
||||
Mutation: {}
|
||||
Post: {
|
||||
// root type
|
||||
body?: string | null // String
|
||||
title?: string | null // String
|
||||
}
|
||||
Query: {}
|
||||
Subscription: {}
|
||||
User: { firstName: string; lastName: string }
|
||||
}
|
||||
|
||||
export interface NexusGenAllTypes extends NexusGenRootTypes {
|
||||
PostSearchInput: NexusGenInputs['PostSearchInput']
|
||||
String: NexusGenScalars['String']
|
||||
Int: NexusGenScalars['Int']
|
||||
Float: NexusGenScalars['Float']
|
||||
Boolean: NexusGenScalars['Boolean']
|
||||
ID: NexusGenScalars['ID']
|
||||
}
|
||||
|
||||
export interface NexusGenFieldTypes {
|
||||
Mutation: {
|
||||
// field return type
|
||||
createUser: NexusGenRootTypes['User'] | null // User
|
||||
}
|
||||
Post: {
|
||||
// field return type
|
||||
body: string | null // String
|
||||
title: string | null // String
|
||||
}
|
||||
Query: {
|
||||
// field return type
|
||||
foo: string | null // String
|
||||
searchPosts: Array<NexusGenRootTypes['Post'] | null> | null // [Post]
|
||||
user: NexusGenRootTypes['User'] | null // User
|
||||
}
|
||||
Subscription: {
|
||||
// field return type
|
||||
someBoolean: boolean | null // Boolean
|
||||
someField: number | null // Int
|
||||
someFields: Array<number | null> | null // [Int]
|
||||
someFloat: number | null // Float
|
||||
someID: string | null // ID
|
||||
someInt: number | null // Int
|
||||
someInts: Array<number | null> | null // [Int]
|
||||
someString: string | null // String
|
||||
}
|
||||
User: {
|
||||
// field return type
|
||||
firstName: string | null // String
|
||||
lastName: string | null // String
|
||||
}
|
||||
}
|
||||
|
||||
export interface NexusGenFieldTypeNames {
|
||||
Mutation: {
|
||||
// field return type name
|
||||
createUser: 'User'
|
||||
}
|
||||
Post: {
|
||||
// field return type name
|
||||
body: 'String'
|
||||
title: 'String'
|
||||
}
|
||||
Query: {
|
||||
// field return type name
|
||||
foo: 'String'
|
||||
searchPosts: 'Post'
|
||||
user: 'User'
|
||||
}
|
||||
Subscription: {
|
||||
// field return type name
|
||||
someBoolean: 'Boolean'
|
||||
someField: 'Int'
|
||||
someFields: 'Int'
|
||||
someFloat: 'Float'
|
||||
someID: 'ID'
|
||||
someInt: 'Int'
|
||||
someInts: 'Int'
|
||||
someString: 'String'
|
||||
}
|
||||
User: {
|
||||
// field return type name
|
||||
firstName: 'String'
|
||||
lastName: 'String'
|
||||
}
|
||||
}
|
||||
|
||||
export interface NexusGenArgTypes {
|
||||
Mutation: {
|
||||
createUser: {
|
||||
// args
|
||||
firstName?: string | null // String
|
||||
lastName?: string | null // String
|
||||
}
|
||||
}
|
||||
Query: {
|
||||
searchPosts: {
|
||||
// args
|
||||
input?: NexusGenInputs['PostSearchInput'] | null // PostSearchInput
|
||||
}
|
||||
user: {
|
||||
// args
|
||||
id?: string | null // ID
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export interface NexusGenAbstractTypesMapResolveTypeMethodReturnType {}
|
||||
|
||||
export interface NexusGenInheritedFields {}
|
||||
|
||||
export type NexusGenObjectNames = 'Mutation' | 'Post' | 'Query' | 'Subscription' | 'User'
|
||||
|
||||
export type NexusGenInputNames = 'PostSearchInput'
|
||||
|
||||
export type NexusGenEnumNames = never
|
||||
|
||||
export type NexusGenInterfaceNames = never
|
||||
|
||||
export type NexusGenScalarNames = 'Boolean' | 'Float' | 'ID' | 'Int' | 'String'
|
||||
|
||||
export type NexusGenUnionNames = never
|
||||
|
||||
export interface NexusGenTypes {
|
||||
context: any
|
||||
inputTypes: NexusGenInputs
|
||||
rootTypes: NexusGenRootTypes
|
||||
argTypes: NexusGenArgTypes
|
||||
fieldTypes: NexusGenFieldTypes
|
||||
fieldTypeNames: NexusGenFieldTypeNames
|
||||
allTypes: NexusGenAllTypes
|
||||
inheritedFields: NexusGenInheritedFields
|
||||
objectNames: NexusGenObjectNames
|
||||
inputNames: NexusGenInputNames
|
||||
enumNames: NexusGenEnumNames
|
||||
interfaceNames: NexusGenInterfaceNames
|
||||
scalarNames: NexusGenScalarNames
|
||||
unionNames: NexusGenUnionNames
|
||||
allInputTypes: NexusGenTypes['inputNames'] | NexusGenTypes['enumNames'] | NexusGenTypes['scalarNames']
|
||||
allOutputTypes:
|
||||
| NexusGenTypes['objectNames']
|
||||
| NexusGenTypes['enumNames']
|
||||
| NexusGenTypes['unionNames']
|
||||
| NexusGenTypes['interfaceNames']
|
||||
| NexusGenTypes['scalarNames']
|
||||
allNamedTypes: NexusGenTypes['allInputTypes'] | NexusGenTypes['allOutputTypes']
|
||||
abstractTypes: NexusGenTypes['interfaceNames'] | NexusGenTypes['unionNames']
|
||||
abstractTypesMapResolveTypeMethodReturnType: NexusGenAbstractTypesMapResolveTypeMethodReturnType
|
||||
}
|
||||
|
||||
declare global {
|
||||
interface NexusGenPluginTypeConfig<TypeName extends string> {}
|
||||
interface NexusGenPluginFieldConfig<TypeName extends string, FieldName extends string> {}
|
||||
interface NexusGenPluginSchemaConfig {}
|
||||
}
|
||||
Loading…
Reference in New Issue