Skip to content

Commit

Permalink
fix(core): typo of variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
soartec-lab committed Feb 29, 2024
1 parent 7da42a8 commit 564dd8e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/core/src/generators/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`;
}
Expand Down

0 comments on commit 564dd8e

Please sign in to comment.