registration
This commit is contained in:
10
frontend/style/node_modules/date-fns/formatDistanceToNowStrict.d.ts
generated
vendored
10
frontend/style/node_modules/date-fns/formatDistanceToNowStrict.d.ts
generated
vendored
@@ -1,9 +1,11 @@
|
||||
import type { FormatDistanceStrictOptions } from "./formatDistanceStrict.js";
|
||||
import type { ContextOptions, DateArg } from "./types.js";
|
||||
/**
|
||||
* The {@link formatDistanceToNowStrict} function options.
|
||||
*/
|
||||
export interface FormatDistanceToNowStrictOptions
|
||||
extends FormatDistanceStrictOptions {}
|
||||
extends FormatDistanceStrictOptions,
|
||||
ContextOptions<Date> {}
|
||||
/**
|
||||
* @name formatDistanceToNowStrict
|
||||
* @category Common Helpers
|
||||
@@ -24,8 +26,6 @@ export interface FormatDistanceToNowStrictOptions
|
||||
* | 1 ... 11 months | [1..11] months |
|
||||
* | 1 ... N years | [1..N] years |
|
||||
*
|
||||
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
|
||||
*
|
||||
* @param date - The given date
|
||||
* @param options - An object with options.
|
||||
*
|
||||
@@ -77,7 +77,7 @@ export interface FormatDistanceToNowStrictOptions
|
||||
* )
|
||||
* //=> '1 jaro'
|
||||
*/
|
||||
export declare function formatDistanceToNowStrict<DateType extends Date>(
|
||||
date: DateType | number | string,
|
||||
export declare function formatDistanceToNowStrict(
|
||||
date: DateArg<Date> & {},
|
||||
options?: FormatDistanceToNowStrictOptions,
|
||||
): string;
|
||||
|
||||
Reference in New Issue
Block a user