npm.io
1.0.7 • Published 11 months ago

@types/moment-round

Licence
MIT
Version
1.0.7
Deps
1
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

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 moment = require("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: Fri, 24 Oct 2025 0441 GMT
  • Dependencies: moment

Credits

These definitions were written by Jacob Baskin.