Skip to content

Commit

Permalink
Update FFI to make transcription intervals optional (#299)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinmr committed Mar 31, 2024
1 parent bca5774 commit 8aaadc8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ffi/trane.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export type TranscriptionAsset =

export interface TranscriptionPassages {
asset: TranscriptionAsset;
intervals: Record<number, string[]>;
intervals?: Record<number, string[]>;
}

export interface TranscriptionPreferences {
Expand Down
1 change: 1 addition & 0 deletions src/data/ffi/course_generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ impl From<transcription::TranscriptionAsset> for TranscriptionAsset {
pub struct TranscriptionPassages {
pub asset: TranscriptionAsset,
#[typeshare(serialized_as = "HashMap<u32, Vec<String>>")]
#[serde(default)]
pub intervals: HashMap<usize, (String, String)>,
}

Expand Down

0 comments on commit 8aaadc8

Please sign in to comment.