@types/can-autoplay
TypeScript icon, indicating that this package has built-in type declarations

3.0.5 • Public • Published

Installation

npm install --save @types/can-autoplay

Summary

This package contains type definitions for can-autoplay (https://github.com/video-dev/can-autoplay).

Details

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>;

Additional Details

  • Last updated: Fri, 08 Mar 2024 17:07:21 GMT
  • Dependencies: none

Credits

These definitions were written by Viacheslav Borodulin.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/can-autoplay

Weekly Downloads

3,126

Version

3.0.5

License

MIT

Unpacked Size

3.55 kB

Total Files

5

Last publish

Collaborators

  • types