added unit testing, and started implementing unit tests...phew
This commit is contained in:
47
node_modules/fecha/fecha.d.ts
generated
vendored
Normal file
47
node_modules/fecha/fecha.d.ts
generated
vendored
Normal file
@ -0,0 +1,47 @@
|
||||
export type Days = [string, string, string, string, string, string, string];
|
||||
|
||||
export type Months = [
|
||||
string,
|
||||
string,
|
||||
string,
|
||||
string,
|
||||
string,
|
||||
string,
|
||||
string,
|
||||
string,
|
||||
string,
|
||||
string,
|
||||
string,
|
||||
string
|
||||
];
|
||||
|
||||
export interface i18nSettings {
|
||||
amPm: [string, string];
|
||||
dayNames: Days;
|
||||
dayNamesShort: Days;
|
||||
monthNames: Months;
|
||||
monthNamesShort: Months;
|
||||
DoFn(D: number): string;
|
||||
}
|
||||
|
||||
export interface Masks {
|
||||
default: string;
|
||||
fullDate: string;
|
||||
longDate: string;
|
||||
longTime: string;
|
||||
mediumDate: string;
|
||||
mediumTime: string;
|
||||
shortDate: string;
|
||||
shortTime: string;
|
||||
[myMask: string]: string;
|
||||
}
|
||||
|
||||
export let masks: Masks;
|
||||
|
||||
export let i18n: i18nSettings;
|
||||
|
||||
export function format(dateObj: Date | number, mask: string, i18nSettings?: i18nSettings): string;
|
||||
|
||||
export function parse(dateStr: string, format: string, i18nSettings?: i18nSettings): Date | boolean;
|
||||
|
||||
export as namespace Fecha;
|
Reference in New Issue
Block a user