mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 21:10:23 +00:00
Correct type for precision parameter
This commit is contained in:
+1
-1
@@ -7,7 +7,7 @@ import * as moment from "moment";
|
||||
|
||||
declare module "moment" {
|
||||
interface Duration {
|
||||
format(template: string, precision?: string, settings?: DurationFormatSettings): string;
|
||||
format(template: string, precision?: number, settings?: DurationFormatSettings): string;
|
||||
}
|
||||
|
||||
interface DurationFormatSettings {
|
||||
|
||||
Reference in New Issue
Block a user