From d83f22ae0ab11faeb2d2f18d4f3440e15d278b13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kr=C3=A6n=20Hansen?= Date: Wed, 7 Jun 2023 15:25:38 +0200 Subject: [PATCH] Fixed importing through "realm/binding/core" --- packages/realm/bindgen/src/templates/typescript.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/realm/bindgen/src/templates/typescript.ts b/packages/realm/bindgen/src/templates/typescript.ts index eb53e609ef..d4a97f4756 100644 --- a/packages/realm/bindgen/src/templates/typescript.ts +++ b/packages/realm/bindgen/src/templates/typescript.ts @@ -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("};"); }