arbre-app / read-gedcom

A modern Gedcom parser written in Typescript
https://docs.arbre.app/read-gedcom
MIT License
15 stars 4 forks source link

change export const enum to export enum #8

Open lschierer opened 1 year ago

lschierer commented 1 year ago

const enums cause errors with either isolatedModules or verbatimmodulesyntax, See https://www.typescriptlang.org/tsconfig#isolatedModules for example

This pull request is one possible fix, it changes the const enums to simply enums. I'm not sure this is the right fix, https://www.typescriptlang.org/docs/handbook/enums.html#ambient-enums suggests that changing them to const objects may be better.