UNPKG

react-h5-audio-player

Version:

A customizable React audio player. Written in TypeScript. Mobile compatible. Keyboard friendly

8 lines (7 loc) 486 B
import { MAIN_LAYOUT, TIME_FORMAT } from './constants'; type throttleFunction<T> = (arg: T) => void; export declare const getMainLayoutClassName: (layout: MAIN_LAYOUT) => string; export declare const getPosX: (event: TouchEvent | MouseEvent) => number; export declare const getDisplayTimeBySeconds: (seconds: number, totalSeconds: number, timeFormat: TIME_FORMAT) => string; export declare function throttle<K>(func: throttleFunction<K>, limit: number): throttleFunction<K>; export {};