From 70590a96fa6ad99a52aab75c45f930a5aff941f6 Mon Sep 17 00:00:00 2001 From: Jason Kuhrt Date: Fri, 6 Sep 2024 16:17:21 -0400 Subject: [PATCH] chore(generator): gen with backticks --- src/layers/2_generator/code/Error.ts | 2 +- src/layers/2_generator/code/Select.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/layers/2_generator/code/Error.ts b/src/layers/2_generator/code/Error.ts index 0d203adf2..7db29a30c 100644 --- a/src/layers/2_generator/code/Error.ts +++ b/src/layers/2_generator/code/Error.ts @@ -22,7 +22,7 @@ export const { generate: generateError, moduleName: moduleNameError } = createCo code.push( `export const isError = <$Value>(value:$Value): value is Include<$Value, ErrorObjectsTypeNameSelected> => { - return typeof value === 'object' && value !== null && '__typename' in value && + return typeof value === \`object\` && value !== null && \`__typename\` in value && ErrorObjectsTypeNameSelected.some(_ => _.__typename === value.__typename) }`, ) diff --git a/src/layers/2_generator/code/Select.ts b/src/layers/2_generator/code/Select.ts index c79f272e0..b1f7cbfa9 100644 --- a/src/layers/2_generator/code/Select.ts +++ b/src/layers/2_generator/code/Select.ts @@ -14,7 +14,7 @@ export const { generate: generateSelect, moduleName: moduleNameSelect } = create code.push( title(`Runtime`), `import { createSelect } from '${config.libraryPaths.client}'`, - `export const Select = createSelect('default')`, + `export const Select = createSelect(\`default\`)`, ``, title(`Buildtime`), ``,