UNPKG

@naturalcycles/js-lib

Version:

Standard library for universal (browser + Node.js) javascript

40 lines (39 loc) 1.49 kB
import { z } from 'zod'; export declare const TS_2500 = 16725225600; export declare const TS_2000 = 946684800; export declare const zUnixTimestamp: z.ZodNumber; export declare const zUnixTimestamp2000: z.ZodNumber; export declare const zUnixTimestampMillis: z.ZodNumber; export declare const zUnixTimestampMillis2000: z.ZodNumber; export declare const zSemVer: z.ZodString; export declare const zIsoDateString: z.ZodEffects<z.ZodString, string, string>; export declare const zEmail: z.ZodEffects<z.ZodString, string, string>; export declare const BASE62_REGEX: RegExp; export declare const BASE64_REGEX: RegExp; export declare const BASE64URL_REGEX: RegExp; export declare const zBase62: z.ZodString; export declare const zBase64: z.ZodString; export declare const zBase64Url: z.ZodString; export declare const JWT_REGEX: RegExp; export declare const zJwt: z.ZodString; export declare const zId: z.ZodString; export declare const zIdBase62: z.ZodString; export declare const zIdBase64: z.ZodString; export declare const zIdBase64Url: z.ZodString; /** * "Slug" - a valid URL, filename, etc. */ export declare const zSlug: z.ZodString; export declare const zBaseDBEntity: z.ZodObject<{ id: z.ZodString; created: z.ZodOptional<z.ZodNumber>; updated: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { id: string; created?: number | undefined; updated?: number | undefined; }, { id: string; created?: number | undefined; updated?: number | undefined; }>;