diff --git a/packages/webvtt-adapter/src/Token.ts b/packages/webvtt-adapter/src/Token.ts index d694284..c98b429 100644 --- a/packages/webvtt-adapter/src/Token.ts +++ b/packages/webvtt-adapter/src/Token.ts @@ -13,7 +13,13 @@ export class Token { public offset: number; public length: number; - private constructor(public readonly type: TokenType, public readonly content: string) {} + public readonly type: TokenType; + public readonly content: string; + + private constructor(type: TokenType, content: string) { + this.type = type; + this.content = content; + } public static String(content: string, boundaries: Boundaries): Token { const token = new Token(TokenType.STRING, content);