chore: update plyr.d.ts for right ts check (#2245)

This commit is contained in:
Lynn 2021-08-24 21:18:09 +08:00 committed by GitHub
parent c2bfe489ea
commit 4d6ac4ade1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

4
src/js/plyr.d.ts vendored
View File

@ -238,8 +238,10 @@ declare class Plyr {
/**
* Destroy lib instance
* @param {Function} callback - Callback for when destroy is complete
* @param {Boolean} soft - Whether it's a soft destroy (for source changes etc)
*/
destroy(): void;
destroy(callback?: (...args: any[]) => void, soft?: boolean): void;
}
declare namespace Plyr {