funciones-basicas
Version:
Funciones Basicas para proyectos simples
10 lines (9 loc) • 958 B
TypeScript
export declare const replaceAll: (value: string | null | undefined, oldValue: string, newValue: string) => string;
export declare const dateToStr: (date: string) => string;
export declare const formatContructorDate: (fecha: Date | null | undefined, includeTime?: boolean, format?: "-" | "/", days?: number, includeSeconds?: boolean) => string;
export declare const formatDate: (isoDate?: string, includeTime?: boolean, format?: "-" | "/", days?: number, includeSeconds?: boolean) => string;
export declare const formatDateToIso: (Date: string) => string;
export declare const formatTime: (isoDate?: string) => string;
export declare const diffDate: (valueFrom: string, valueTo: string | null | undefined, type: "min" | "sec" | "hour" | "day", includeNegatives: boolean) => number;
export declare const typeOf: (value: any) => "" | "array" | "string" | "number" | "object" | "boolean";
export declare const toBoolean: (value?: any, def?: boolean) => boolean;