@accelbyte/codegen 1.0.0-alpha.11 → 1.0.0-alpha.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -652,13 +652,13 @@ export const ${fileName}: z.ZodType<${fileName}> = z.lazy(() =>
652
652
  )
653
653
  `;
654
654
  exportedTypeString = `
655
- export type ${fileName} = {
655
+ export interface ${fileName} {
656
656
  ${content.typeString}
657
657
  }
658
658
  `;
659
659
  } else {
660
660
  exportedVariableString = `export const ${fileName} = ${content.schemaString}`;
661
- exportedTypeString = `export type ${fileName} = z.TypeOf<typeof ${fileName}>`;
661
+ exportedTypeString = `export interface ${fileName} extends z.TypeOf<typeof ${fileName}> {}`;
662
662
  }
663
663
  const template = `import { z } from 'zod'
664
664
  ${imports}
@@ -826,7 +826,7 @@ import { ${cls} } from './${cls}'
826
826
 
827
827
  export const ${name} = z.array(${cls})
828
828
 
829
- export type ${name} = z.TypeOf<typeof ${name}>
829
+ export interface ${name} extends z.TypeOf<typeof ${name}> {}
830
830
  `;
831
831
  return template;
832
832
  };