@types/pretty-time
    TypeScript icon, indicating that this package has built-in type declarations

    1.1.2 • Public • Published

    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.

    Keywords

    none

    Install

    npm i @types/pretty-time

    DownloadsWeekly Downloads

    32,057

    Version

    1.1.2

    License

    MIT

    Unpacked Size

    4.33 kB

    Total Files

    4

    Last publish

    Collaborators

    • types