UNPKG

@minimaltech/node-infra

Version:

Minimal Technology NodeJS Infrastructure - Loopback 4 Framework

18 lines (17 loc) 577 B
import dayjs from 'dayjs'; export declare const sleep: (ms: number) => Promise<unknown>; export declare const isWeekday: (date: string | dayjs.Dayjs) => boolean; export declare const getPreviousWeekday: (opts?: { date?: string | dayjs.Dayjs; }) => dayjs.Dayjs; export declare const getNextWeekday: (opts?: { date?: string | dayjs.Dayjs; }) => dayjs.Dayjs; export declare const getDateTz: (opts: { date: string; timezone: string; useClientTz?: boolean; timeOffset?: number; }) => dayjs.Dayjs; export declare const hrTime: () => number; export { dayjs };