npm install --save @types/smpte-timecode
This package contains type definitions for smpte-timecode (https://github.com/CrystalComputerCorp/smpte-timecode).
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;
- Last updated: Mon, 29 Apr 2024 13:07:27 GMT
- Dependencies: none
These definitions were written by DoYoung Ha.