Skip to content

Commit

Permalink
Fixed importing through "realm/binding/core"
Browse files Browse the repository at this point in the history
  • Loading branch information
kraenhansen committed Jun 7, 2023
1 parent 0db66d0 commit d83f22a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/realm/bindgen/src/templates/typescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export function generate({ spec: rawSpec, file }: TemplateContext): void {
coreOut("// Enums");
for (const e of spec.enums) {
// Using const enum to avoid having to emit JS backing these
coreOut(`export const enum ${e.jsName} {`);
coreOut(`export enum ${e.jsName} {`);
coreOut(...e.enumerators.map(({ jsName, value }) => `${jsName} = ${value},\n`));
coreOut("};");
}
Expand Down

0 comments on commit d83f22a

Please sign in to comment.