mjstl
Version:
JS USEABLE DATEUTIL HELPER LIB
32 lines (31 loc) • 1.02 kB
TypeScript
import { SfAccType, IDeviceUtil, IGeoUtil, IIdUtil, ISafeSani, MArray, NumeralUtil, PhoneUtil, SfSortCompareType, SfSortDirectionType, IDash } from "./types";
export {};
export interface ISaniSafer {
path: (url: string) => string;
input: (value: string) => string;
dtPath: (url: string) => boolean;
dtInput: (value: string) => boolean;
}
declare global {
interface Array<T> extends MArray<T> {
}
}
declare function MfSort<T, R = T>(type: SfSortCompareType, acc: SfAccType<T, R> | null, direction?: SfSortDirectionType): void;
export declare const mtl: {
Numeral: NumeralUtil;
Phone: PhoneUtil;
Geo: IGeoUtil;
Id: IIdUtil;
Device: IDeviceUtil;
SafeSani: ISafeSani;
Config: {
setLocale: (value: string) => void;
setCountryCode: (value: string) => void;
};
Crypt: {
encrypt: (screetKey: string, data: string) => string;
decrypt: (screetKey: string, data: string) => string;
};
MfSort: typeof MfSort;
dash: IDash;
};