mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-03-29 22:38:33 +08:00
[moment]: relativeTimeThreshold can be a getter fix signature.
This commit is contained in:
3
moment/moment-node.d.ts
vendored
3
moment/moment-node.d.ts
vendored
@@ -465,7 +465,8 @@ declare module moment {
|
||||
max(moments: Moment[]): Moment;
|
||||
|
||||
normalizeUnits(unit: string): string;
|
||||
relativeTimeThreshold(threshold: string, limit: number): void;
|
||||
relativeTimeThreshold(threshold: string): number|boolean;
|
||||
relativeTimeThreshold(threshold: string, limit:number): boolean;
|
||||
|
||||
/**
|
||||
* Constant used to enable explicit ISO_8601 format parsing.
|
||||
|
||||
Reference in New Issue
Block a user