Skip to content

Commit 416075b

Browse files
committed
Made clip IDs writable
1 parent 9a501fe commit 416075b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/models/transcript.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import type { Captions } from '../types';
1717
import type { Serializer } from '../services';
1818

1919
export class Transcript implements Serializer {
20-
public readonly id = crypto.randomUUID();
20+
public id = crypto.randomUUID();
2121
public language: Language = Language.en;
2222
public groups: WordGroup[] = [];
2323

src/services/serializer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export class Serializer {
44
/**
55
* Unique identifier of the object
66
*/
7-
public readonly id = crypto.randomUUID();
7+
public id = crypto.randomUUID();
88

99
toJSON(): any {
1010
const obj: any = {};

0 commit comments

Comments
 (0)