CodiceFiscaleJS/types/utils.d.ts
2018-10-08 11:27:13 +02:00

9 lines
549 B
TypeScript

export declare function normalizeString(str: string): string;
export declare function daysInMonth(m: number, y: number): 29 | 28 | 30 | 31;
export declare function isValidDate(d: number, m: number, y: number): boolean;
export declare function getValidDate(d: number, m: number, y: number): Date;
export declare function extractVowels(str: string): string;
export declare function extractConsonants(str: string): string;
export declare function pad(n: number, size?: number): string;
export declare function birthplaceFields(selector: string): void;