@types/pretty-time
TypeScript definitions for pretty-time
Last updated 7 years ago by types .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @types/pretty-time 
SYNC missed versions from official npm registry.

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:  Adam Zerella <https://github.com/adamzerella>
// 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: Mon, 02 Aug 2021 13:01:28 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Adam Zerella.

Current Tags

  • 1.1.2                                ...           latest (4 years ago)
  • 1.1.0                                ...           ts3.3 (7 years ago)
  • 1.1.0                                ...           ts3.4 (7 years ago)
  • 1.1.0                                ...           ts3.5 (7 years ago)
  • 1.1.1                                ...           ts3.6 (5 years ago)
  • 1.1.1                                ...           ts3.7 (5 years ago)
  • 1.1.2                                ...           ts3.8 (4 years ago)
  • 1.1.2                                ...           ts3.9 (4 years ago)
  • 1.1.2                                ...           ts4.0 (4 years ago)
  • 1.1.2                                ...           ts4.1 (4 years ago)
  • 1.1.2                                ...           ts4.2 (4 years ago)
  • 1.1.2                                ...           ts4.3 (4 years ago)
  • 1.1.2                                ...           ts4.4 (4 years ago)
  • 1.1.2                                ...           ts4.5 (4 years ago)
  • 1.1.2                                ...           ts4.6 (4 years ago)
  • 1.1.2                                ...           ts4.7 (4 years ago)
  • 1.1.2                                ...           ts4.8 (4 years ago)
  • 1.1.2                                ...           ts4.9 (4 years ago)
  • 1.1.2                                ...           ts5.0 (4 years ago)
  • 1.1.2                                ...           ts5.1 (4 years ago)

3 Versions

  • 1.1.2                                ...           4 years ago
  • 1.1.1                                ...           5 years ago
  • 1.1.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org | Home |