Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[moment_v2.x.x] Add methods relativeTimeRounding & relativeTimeThreshold #3717

Merged
merged 1 commit into from
Feb 2, 2020

Conversation

@nifgraup nifgraup changed the title [moment_v2.x.x.] Add missing relativeTimeRounding and relativeTimeThreshold [moment_v2.x.x] Add methods relativeTimeRounding & relativeTimeThreshold Jan 31, 2020
@@ -372,6 +372,13 @@ declare class moment$Moment {
static isDuration(obj: any): boolean;
static normalizeUnits(unit: string): string;
static invalid(object: any): moment$Moment;
static relativeTimeRounding(): (value: number) => number;
static relativeTimeRounding(fn: (value: number) => number): void;
static relativeTimeThreshold(unit: "ss" | "s" | "m" | "h" | "d" | "M",): number;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe remove that trailing comma?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@pascalduez pascalduez merged commit 8687adf into flow-typed:master Feb 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants