UNPKG

ts-py-datetime

Version:

Datetime handling the python way (or as close as possible), now with TypeScript

4 lines (3 loc) 194 B
export declare const DateIntervals: readonly ["year", "month", "day"]; export type DateInterval = (typeof DateIntervals)[number]; export type DateParams = Partial<Record<DateInterval, number>>;