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

1.2.5 • Public • Published

Installation

npm install --save @types/smpte-timecode

Summary

This package contains type definitions for smpte-timecode (https://github.com/CrystalComputerCorp/smpte-timecode).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/smpte-timecode.

declare const Timecode: {
    (timecode?: Timecode.TIMECODE, frameRate?: Timecode.FRAMERATE, dropFrame?: boolean): Timecode.TimecodeInstance;
    new(timecode?: Timecode.TIMECODE, frameRate?: Timecode.FRAMERATE, dropFrame?: boolean): Timecode.TimecodeInstance;
};

declare namespace Timecode {
    type TIMECODE = number | string | Date | TimecodeObject;
    type FRAMERATE = 23.976 | 24 | 25 | 29.97 | 30 | 50 | 59.94 | 60 | [number, number];

    interface TimecodeObject {
        hours: number;
        minutes: number;
        seconds: number;
        frames: number;
    }

    interface TimecodeInstance {
        add(timecode: TIMECODE, negative?: boolean, rollOverMaxHours?: number): TimecodeInstance;
        subtract(timecode: TIMECODE, rollOverMaxHours?: number): TimecodeInstance;
        toDate(): Date;
        toString(options?: string): string;
        valueOf(): number;

        hours: number;
        minutes: number;
        seconds: number;
        frames: number;
        dropFrame: boolean;
        frameCount: number;
        frameRate: number;
    }
}

export = Timecode;

Additional Details

  • Last updated: Mon, 29 Apr 2024 13:07:27 GMT
  • Dependencies: none

Credits

These definitions were written by DoYoung Ha.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/smpte-timecode

Weekly Downloads

2,026

Version

1.2.5

License

MIT

Unpacked Size

4.78 kB

Total Files

5

Last publish

Collaborators

  • types