datasquirel/package-shared/utils/index.d.ts

14 lines
649 B
TypeScript
Raw Normal View History

2024-12-12 06:01:57 +00:00
export const numberfy: (num: any, decimals?: number) => number;
export const slugify: (str: string) => string;
export const serializeCookies: typeof import("./serialize-cookies");
export const serializeQuery: typeof import("./serialize-query");
export const trimSql: typeof import("./trim-sql");
export const EJSON: {
parse: (string: string | null | number, reviver?: (this: any, key: string, value: any) => any) => {
[x: string]: any;
} | {
[x: string]: any;
}[] | undefined;
stringify: (value: any, replacer?: ((this: any, key: string, value: any) => any) | null, space?: string | number) => string | undefined;
};