Skip to content

Commit 7a322d8

Browse files
authored
refactor(generator): kind map clean up (#1207)
1 parent 9e5a0ad commit 7a322d8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+2922
-2820
lines changed

src/extensions/SchemaErrors/generator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,5 @@ export const SchemaErrors = (input?: Input) => {
5757

5858
// todo memoize
5959
const getErrorObjects = (config: Config, genConfig: GeneratorConfig) => {
60-
return Object.values(genConfig.schema.kindMap.GraphQLObjectType).filter(config.isErrorType)
60+
return Object.values(genConfig.schema.kindMap.OutputObject).filter(config.isErrorType)
6161
}

src/extensions/SchemaErrors/tests/fixture/graffle/modules/Global.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type * as Data from './Data.js'
22
import type * as MethodsDocument from './MethodsDocument.js'
33
import type * as MethodsRoot from './MethodsRoot.js'
44
import type * as MethodsSelect from './MethodsSelect.js'
5-
import type * as Scalar from './Scalar.js'
5+
import type * as $Scalar from './Scalar.js'
66
import type { Schema } from './Schema.js'
77

88
declare global {

src/extensions/SchemaErrors/tests/fixture/graffle/modules/MethodsSelect.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export interface Query {
7373
//
7474
//
7575
// ==================================================================================================
76-
// Object
76+
// OutputObject
7777
// ==================================================================================================
7878
//
7979
//

0 commit comments

Comments
 (0)