planby
Version:
<div align="center" style="margin-bottom: 10px"> <a href="https://www.npmjs.com/package/planby"> <img src="https://i.postimg.cc/J0XMPHNQ/planby-logo.png" alt="Planby logo" /> </a> </div>
24 lines (23 loc) • 810 B
TypeScript
import { ProgramItem, BaseTimeFormat } from "../helpers/types";
interface useProgramProps<T> {
program: T;
isRTL?: boolean;
isBaseTimeFormat: BaseTimeFormat;
minWidth?: number;
}
export declare function useProgram<T extends ProgramItem>({ isRTL, isBaseTimeFormat, program, minWidth, }: useProgramProps<T>): {
isLive: boolean;
isMinWidth: boolean;
isRTL: boolean;
formatTime: (date: string | number | Date, formatType?: string) => string;
set12HoursTimeFormat: () => string;
getRTLSinceTime: (since: string | number | Date) => string | number | Date;
getRTLTillTime: (till: string | number | Date) => string | number | Date;
styles: {
width: number;
position: {
[x: string]: any;
};
};
};
export {};