create.d.ts 379 B

12345678
  1. import { Duration } from './constructor';
  2. import { DateObject } from '../types';
  3. import { DateParsingConfig } from '../create/parsing.types';
  4. export declare type DurationInput = string | number | Duration | Partial<DateObject> | {
  5. from: Date;
  6. to: Date;
  7. };
  8. export declare function createDuration(input?: DurationInput, key?: string, config?: DateParsingConfig): Duration;