Skip to content

Commit

Permalink
WebVTT: removed public readonly parameters in constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandercerutti committed Aug 10, 2024
1 parent bd0d7da commit 3c9dbf5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/webvtt-adapter/src/Token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3c9dbf5

Please sign in to comment.