npm install --save @types/can-autoplay
This package contains type definitions for can-autoplay (https://github.com/video-dev/can-autoplay).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/can-autoplay.
export interface Options {
inline?: boolean | undefined;
muted?: boolean | undefined;
timeout?: number | undefined;
}
export interface CheckResponseTrue {
result: true;
error: null;
}
export interface CheckResponseFalse {
result: false;
error: Error;
}
export type CheckResponse = CheckResponseTrue | CheckResponseFalse;
export function audio(options?: Options): Promise<CheckResponse>;
export function video(options?: Options): Promise<CheckResponse>;
- Last updated: Fri, 08 Mar 2024 17:07:21 GMT
- Dependencies: none
These definitions were written by Viacheslav Borodulin.