Skip to content
This repository was archived by the owner on Sep 27, 2023. It is now read-only.

Commit 89a7744

Browse files
authored
Update TypeScriptTypeTransformers.ts
1 parent 8e05753 commit 89a7744

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TypeScriptTypeTransformers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function transformGraphQLScalarType(
7474
state: State
7575
): ts.TypeNode {
7676
const customType = state.customScalars[type.name];
77-
switch (state.customScalars[type.name] || type.name) {
77+
switch (customType || type.name) {
7878
case "ID":
7979
case "String":
8080
case "Url":

0 commit comments

Comments
 (0)