feathers-authentication-management
Version:
Adds sign up verification, forgotten password reset, and other capabilities to local feathers-authentication
8 lines (7 loc) • 479 B
TypeScript
/**
* Converts a Date or number to a number. If a string is passed, it will be converted to a number if it is a string of digits, otherwise it will be converted to a Date (expects a date ISO string) and then a number.
* @param dateOrNumber
* @param fallBack The value to return if the value is undefined or null. Defaults to `0`.
* @returns
*/
export declare function dateOrNumberToNumber(dateOrNumber: Date | number | string | undefined | null, fallBack?: number): number;