From 564dd8ee2015b91ce23089c7d11fd3cc9ec88b1f Mon Sep 17 00:00:00 2001 From: soartec-lab Date: Thu, 29 Feb 2024 00:37:57 +0000 Subject: [PATCH] fix(core): typo of variable name --- packages/core/src/generators/interface.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/core/src/generators/interface.ts b/packages/core/src/generators/interface.ts index ab2fbafe0..837a20166 100644 --- a/packages/core/src/generators/interface.ts +++ b/packages/core/src/generators/interface.ts @@ -47,9 +47,10 @@ export const generateInterface = ({ !context?.output.override?.useTypeOverInterfaces ) { // If `scalar.value` is 'unknown', replace it with `{}` to avoid type error - const blankIntefaceValue = scalar.value === 'unknown' ? '{}' : scalar.value; + const blankInterfaceValue = + scalar.value === 'unknown' ? '{}' : scalar.value; - model += `export interface ${name} ${blankIntefaceValue}\n`; + model += `export interface ${name} ${blankInterfaceValue}\n`; } else { model += `export type ${name} = ${scalar.value};\n`; }