Skip to content

Commit 5f76cab

Browse files
author
yusitnikov
committed
Add type definitions
1 parent 638be60 commit 5f76cab

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

fix-webm-duration.d.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
export type LoggerCallback = (message: string) => void;
2+
3+
export interface Options {
4+
logger?: LoggerCallback | false;
5+
}
6+
7+
export type ResultCallback = (fixedBlob: Blob) => void;
8+
9+
export interface FixWebmDurationFunction {
10+
(blob: Blob, duration: number, callback: ResultCallback, options?: Options): void;
11+
(blob: Blob, duration: number, options?: Options): Promise<Blob>;
12+
}
13+
14+
declare const fixWebmDuration: FixWebmDurationFunction;
15+
export default fixWebmDuration;

0 commit comments

Comments
 (0)