Fix incorrect conversion trim option typings, change release CI to "trusted publishing"

This commit is contained in:
Vanilagy
2025-12-04 16:40:41 +01:00
parent e5aeff89e3
commit 816bb020fb
5 changed files with 19 additions and 16 deletions
+10 -4
View File
@@ -82,10 +82,16 @@ export type ConversionOptions = {
/** Options to trim the input file. */
trim?: {
/** The time in the input file in seconds at which the output file should start. Must be less than `end`. */
start: number;
/** The time in the input file in seconds at which the output file should end. Must be greater than `start`. */
end: number;
/**
* The time in the input file in seconds at which the output file should start. Must be less than `end`.
* Defaults to 0 when omitted.
*/
start?: number;
/**
* The time in the input file in seconds at which the output file should end. Must be greater than `start`.
* Defaults to the duration of the input when omitted.
*/
end?: number;
};
/**