Skip to content

Commit

Permalink
gen
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonkuhrt committed Oct 7, 2024
1 parent f2e5b78 commit 276694f
Show file tree
Hide file tree
Showing 11 changed files with 160 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/layers/6_client/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ const createWithState = (
}

const clientProxy = proxyGet(clientDirect, ({ path, property }) => {
// @ts-expect-error fixme "Type instantiation is excessively deep and possibly infinite"
// eslint-disable-next-line
// @ts-ignore fixme "Type instantiation is excessively deep and possibly infinite"
const onGetHandlers = state.extensions.map(_ => _.onBuilderGet).filter(_ => _ !== undefined)

for (const onGetHandler of onGetHandlers) {
Expand Down
1 change: 0 additions & 1 deletion website/graffle/modules/Global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import type * as Data from './Data.js'
import type * as MethodsDocument from './MethodsDocument.js'
import type * as MethodsRoot from './MethodsRoot.js'
import type * as MethodsSelect from './MethodsSelect.js'
import type * as SchemaCustomScalarIndex from './SchemaCustomScalarIndex.js'
import type { Index } from './SchemaIndex.js'

declare global {
Expand Down
72 changes: 72 additions & 0 deletions website/graffle/modules/RuntimeCustomScalars.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
import * as CustomScalars from './Scalar.js'
//
//
//
//
//
//
// ==================================================================================================
// GraphQLInputObjectType
// ==================================================================================================
//
//
//
//
//
//

// None of your GraphQLInputObjectTypes have custom scalars.

//
//
//
//
//
//
// ==================================================================================================
// GraphQLObjectType
// ==================================================================================================
//
//
//
//
//
//

// None of your GraphQLObjectTypes have custom scalars.

//
//
//
//
//
//
// ==================================================================================================
// GraphQLRootType
// ==================================================================================================
//
//
//
//
//
//

// None of your GraphQLRootTypes have custom scalars.

//
//
//
//
//
//
// ==================================================================================================
// Index
// ==================================================================================================
//
//
//
//
//
//

export const $index = {}
2 changes: 2 additions & 0 deletions website/graffle/modules/SchemaIndex.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* eslint-disable */
import type * as Utilities from 'graffle/utilities-for-generated'
import type * as Data from './Data.js'
import type * as MethodsRoot from './MethodsRoot.js'
import type * as Schema from './SchemaBuildtime.js'
Expand Down Expand Up @@ -29,6 +30,7 @@ export interface Index {
}
unions: {}
interfaces: {}
customScalars: Utilities.SchemaIndexBase['customScalars']
error: {
objects: {}
objectsTypename: {}
Expand Down
4 changes: 4 additions & 0 deletions website/graffle/modules/SchemaRuntime.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* eslint-disable */
import * as $ from 'graffle/schema'
import * as Data from './Data.js'
import { $index as $customScalarsIndex } from './RuntimeCustomScalars.js'
import * as $Scalar from './Scalar.js'
import type { Index } from './SchemaIndex.js'
export const $defaultSchemaUrl = new URL('https://countries.trevorblades.com/graphql')
Expand Down Expand Up @@ -138,6 +139,9 @@ export const $Index: Index = {
},
unions: {},
interfaces: {},
customScalars: {
input: $customScalarsIndex,
},
error: {
objects: {},
objectsTypename: {},
Expand Down
1 change: 1 addition & 0 deletions website/graffle/modules/Select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export namespace Select {
// -----------

// -- None --

// Interface Types
// ---------------

Expand Down
1 change: 0 additions & 1 deletion website/pokemon/modules/Global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import type * as Data from './Data.js'
import type * as MethodsDocument from './MethodsDocument.js'
import type * as MethodsRoot from './MethodsRoot.js'
import type * as MethodsSelect from './MethodsSelect.js'
import type * as SchemaCustomScalarIndex from './SchemaCustomScalarIndex.js'
import type { Index } from './SchemaIndex.js'

declare global {
Expand Down
72 changes: 72 additions & 0 deletions website/pokemon/modules/RuntimeCustomScalars.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
import * as CustomScalars from './Scalar.js'
//
//
//
//
//
//
// ==================================================================================================
// GraphQLInputObjectType
// ==================================================================================================
//
//
//
//
//
//

// None of your GraphQLInputObjectTypes have custom scalars.

//
//
//
//
//
//
// ==================================================================================================
// GraphQLObjectType
// ==================================================================================================
//
//
//
//
//
//

// None of your GraphQLObjectTypes have custom scalars.

//
//
//
//
//
//
// ==================================================================================================
// GraphQLRootType
// ==================================================================================================
//
//
//
//
//
//

// None of your GraphQLRootTypes have custom scalars.

//
//
//
//
//
//
// ==================================================================================================
// Index
// ==================================================================================================
//
//
//
//
//
//

export const $index = {}
2 changes: 2 additions & 0 deletions website/pokemon/modules/SchemaIndex.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* eslint-disable */
import type * as Utilities from 'graffle/utilities-for-generated'
import type * as Data from './Data.js'
import type * as MethodsRoot from './MethodsRoot.js'
import type * as Schema from './SchemaBuildtime.js'
Expand Down Expand Up @@ -45,6 +46,7 @@ export interface Index {
interfaces: {
Being: Schema.Interface.Being
}
customScalars: Utilities.SchemaIndexBase['customScalars']
error: {
objects: {}
objectsTypename: {}
Expand Down
4 changes: 4 additions & 0 deletions website/pokemon/modules/SchemaRuntime.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* eslint-disable */
import * as $ from 'graffle/schema'
import * as Data from './Data.js'
import { $index as $customScalarsIndex } from './RuntimeCustomScalars.js'
import * as $Scalar from './Scalar.js'
import type { Index } from './SchemaIndex.js'
export const $defaultSchemaUrl = new URL('http://localhost:3000/graphql')
Expand Down Expand Up @@ -212,6 +213,9 @@ export const $Index: Index = {
interfaces: {
Being,
},
customScalars: {
input: $customScalarsIndex,
},
error: {
objects: {},
objectsTypename: {},
Expand Down
2 changes: 1 addition & 1 deletion website/pokemon/modules/SelectionSets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export namespace Mutation {
defense?: number | undefined | null
hp?: number | undefined | null
name: string
type: _RefDefs._PokemonType
$type: _RefDefs._PokemonType
}
}
export type addPokemon$Expanded = addPokemon
Expand Down

0 comments on commit 276694f

Please sign in to comment.