Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change export const enum to export enum #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/parse/GedcomReadingPhase.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Reading phases.
*/
export const enum GedcomReadingPhase {
export enum GedcomReadingPhase {
Decoding,
TokenizationAndStructuring,
Indexing,
Expand Down
2 changes: 1 addition & 1 deletion src/parse/decoder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { decodeUtfBOM } from './decoding';
/**
* Supported Gedcom file encoding schemes.
*/
export const enum FileEncoding {
export enum FileEncoding {
Utf8 = 'UTF-8',
Ansel = 'ANSEL',
Cp1252 = 'Cp1252',
Expand Down
2 changes: 1 addition & 1 deletion src/tag/Tag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* All the standard Gedcom tags.
*/
export const enum Tag {
export enum Tag {
Abbreviation = 'ABBR',
Address = 'ADDR',
Address1 = 'ADR1',
Expand Down
2 changes: 1 addition & 1 deletion src/tag/TagNonStandard.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Opinionated enumeration of common non-standard Gedcom tags.
*/
export const enum TagNonStandard {
export enum TagNonStandard {
CharacterAlt = 'CHARACTER',
}
2 changes: 1 addition & 1 deletion src/value/ValueAdoption.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const enum ValueAdoption {
export enum ValueAdoption {
Husband = 'HUSB',
Wife = 'WIFE',
Both = 'BOTH'
Expand Down
2 changes: 1 addition & 1 deletion src/value/ValueCertainty.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const enum ValueCertainty {
export enum ValueCertainty {
Unreliable = 0,
Questionable = 1,
Secondary = 2,
Expand Down
2 changes: 1 addition & 1 deletion src/value/ValueCharacterEncoding.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const enum ValueCharacterEncoding {
export enum ValueCharacterEncoding {
Utf8 = 'UTF-8',
Unicode = 'UNICODE', // While technically not the name of a charset, it is used by some software (and also part of the Gedcom specification)
Ansel = 'ANSEL',
Expand Down
2 changes: 1 addition & 1 deletion src/value/ValueEvent.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const enum ValueEvent {
export enum ValueEvent {
Yes = 'Y'
}
2 changes: 1 addition & 1 deletion src/value/ValueGedcomForm.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const enum ValueGedcomForm {
export enum ValueGedcomForm {
LineageLinked = 'LINEAGE-LINKED'
}
2 changes: 1 addition & 1 deletion src/value/ValueLanguage.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const enum ValueLanguage {
export enum ValueLanguage {
Afrikaans = 'Afrikaans',
Albanian = 'Albanian',
AngloSaxon = 'Anglo-Saxon',
Expand Down
2 changes: 1 addition & 1 deletion src/value/ValueMediaType.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const enum ValueMediaType {
export enum ValueMediaType {
Audio = 'audio',
Book = 'book',
Card = 'card',
Expand Down
2 changes: 1 addition & 1 deletion src/value/ValueMultimediaFormat.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const enum ValueMultimediaFormat {
export enum ValueMultimediaFormat {
Aac = 'AAC',
Avi = 'AVI',
Bmp = 'BMP',
Expand Down
2 changes: 1 addition & 1 deletion src/value/ValueNameType.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const enum ValueNameType {
export enum ValueNameType {
Alias = 'aka',
Birth = 'birth',
Immigration = 'immigrant',
Expand Down
2 changes: 1 addition & 1 deletion src/value/ValuePedigreeLinkageType.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const enum ValuePedigreeLinkageType {
export enum ValuePedigreeLinkageType {
Adopted = 'adopted',
Birth = 'birth',
Foster = 'foster'
Expand Down
2 changes: 1 addition & 1 deletion src/value/ValuePhonetizationMethod.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const enum ValuePhonetizationMethod {
export enum ValuePhonetizationMethod {
Hangul = 'Hangul',
Kana = 'kana'
}
2 changes: 1 addition & 1 deletion src/value/ValueRole.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const enum ValueRole {
export enum ValueRole {
// Due to TS limitations, we cannot reuse values from `Tag`
Child = 'CHIL',
Husband = 'HUSB',
Expand Down
2 changes: 1 addition & 1 deletion src/value/ValueRomanizationMethod.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const enum ValueRomanizationMethod {
export enum ValueRomanizationMethod {
Pinyin = 'pinyin',
Romaji = 'romaji',
Wadegiles = 'wadegiles'
Expand Down
2 changes: 1 addition & 1 deletion src/value/ValueSex.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const enum ValueSex {
export enum ValueSex {
Male = 'M',
Female = 'F',
Intersex = 'X',
Expand Down
2 changes: 1 addition & 1 deletion src/value/ValueSourceCertainty.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const enum ValueSourceCertainty {
export enum ValueSourceCertainty {
Unreliable = 0,
Questionable = 1,
Secondary = 2,
Expand Down