Skip to content

Commit a094a80

Browse files
authored
fix(generator): scalar definition name (#1244)
1 parent 27b4da7 commit a094a80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/generator/generators/Scalar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export const ModuleGeneratorScalar = createModuleGenerator(
5555
for (const scalar of config.schema.kindMap.list.ScalarCustom) {
5656
code(typeTitle2(`custom scalar type`)(scalar))
5757
code()
58-
code(`export type ${scalar.name} = ${identifiers.$$Utilities}.Schema.Scalar.ScalarCodecless<'Date'>`)
58+
code(`export type ${scalar.name} = ${identifiers.$$Utilities}.Schema.Scalar.ScalarCodecless<'${scalar.name}'>`)
5959
// code(`import type { String as ${scalar.name} } from '${config.paths.imports.grafflePackage.scalars}'`)
6060
// code()
6161
// code(`export { String as ${scalar.name} } from '${config.paths.imports.grafflePackage.scalars}'`)

0 commit comments

Comments
 (0)