1 | import { InjectionToken } from '@angular/core';
|
2 | export declare const NGX_MOMENT_OPTIONS: InjectionToken<NgxMomentOptions>;
|
3 | export interface NgxMomentOptions {
|
4 | /**
|
5 | * relativeTimeThresholdOptions
|
6 | * @description Provides the `relativeTimeThreshold` units allowing a pipe to set the `moment.relativeTimeThreshold` values.
|
7 | * The `key` is a unit defined as one of `ss`, `s`, `m`, `h`, `d`, `M`.
|
8 | * @see https://momentjs.com/docs/#/customization/relative-time-threshold/
|
9 | * @example by default more than 45 seconds is considered a minute, more than 22 hours is considered a day and so on.
|
10 | * So settings the unit 'm' to `59` will adjust the `relativeTimeThreshold` and consider more than 59 minutes
|
11 | * to be an hour (default is `45 minutes`)
|
12 | */
|
13 | relativeTimeThresholdOptions: {
|
14 | [key: string]: number;
|
15 | };
|
16 | }
|