1.1.5 • Published 6 months ago

@types/pretty-time v1.1.5

Weekly downloads
7,250
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/pretty-time

Summary

This package contains type definitions for pretty-time (https://github.com/jonschlinkert/pretty-time).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pretty-time.

index.d.ts

// Type definitions for pretty-time 1.1
// Project: https://github.com/jonschlinkert/pretty-time
// Definitions by: DefinitelyTyped <https://github.com/DefinitelyTyped>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.3

type Increment =
    | 'ns'
    | 'nano'
    | 'nanosecond'
    | 'nanoseconds'
    | 'μs'
    | 'micro'
    | 'microsecond'
    | 'microseconds'
    | 'ms'
    | 'milli'
    | 'millisecond'
    | 'milliseconds'
    | 's'
    | 'sec'
    | 'second'
    | 'seconds'
    | 'm'
    | 'min'
    | 'minute'
    | 'minutes'
    | 'h'
    | 'hr'
    | 'hour'
    | 'hours'
    | 'd'
    | 'day'
    | 'days'
    | 'w'
    | 'wk'
    | 'week'
    | 'weeks';

declare function prettyTime(time: number | number[] | string[], smallest?: Increment | string, digits?: number): string;

export = prettyTime;

Additional Details

  • Last updated: Thu, 23 Dec 2021 23:35:19 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by DefinitelyTyped.