mirror of
https://github.com/zoriya/srt-webvtt.git
synced 2025-12-06 05:56:10 +00:00
added typings for typescript
This commit is contained in:
18
index.d.ts
vendored
Normal file
18
index.d.ts
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
declare module "srt-webvtt" {
|
||||
class WebVTTConverter {
|
||||
constructor(resource: Blob);
|
||||
|
||||
public blobToBuffer(): Promise<Uint8Array | string>;
|
||||
public static blobToString(
|
||||
blob: Blob,
|
||||
success: (result: string) => void,
|
||||
fail: () => void
|
||||
): void;
|
||||
public static toVTT(utf8str: string): string;
|
||||
public static toTypedArray(str: string): Uint8Array;
|
||||
public getURL(): Promise<string>;
|
||||
public release(): void;
|
||||
}
|
||||
|
||||
export default WebVTTConverter;
|
||||
}
|
||||
Reference in New Issue
Block a user