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

1.0.6 • Public • Published

Installation

npm install --save @types/moment-round

Summary

This package contains type definitions for moment-round (https://github.com/WebDevTmas/moment-round).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/moment-round.

index.d.ts

import * as moment from "moment";

export = moment;

declare module "moment" {
    interface Moment {
        round(precision: number, key: string, direction?: "round" | "ceil" | "floor"): Moment;
        ceil(precision: number, key: string): Moment;
        floor(precision: number, key: string): Moment;
    }
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: moment

Credits

These definitions were written by Jacob Baskin.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/moment-round

Weekly Downloads

1,082

Version

1.0.6

License

MIT

Unpacked Size

3.27 kB

Total Files

5

Last publish

Collaborators

  • types