formats.d.ts 643 B

123456789
  1. import type { Format } from "ajv";
  2. export declare type FormatMode = "fast" | "full";
  3. export declare type FormatName = "date" | "time" | "date-time" | "duration" | "uri" | "uri-reference" | "uri-template" | "url" | "email" | "hostname" | "ipv4" | "ipv6" | "regex" | "uuid" | "json-pointer" | "json-pointer-uri-fragment" | "relative-json-pointer" | "byte" | "int32" | "int64" | "float" | "double" | "password" | "binary";
  4. export declare type DefinedFormats = {
  5. [key in FormatName]: Format;
  6. };
  7. export declare const fullFormats: DefinedFormats;
  8. export declare const fastFormats: DefinedFormats;
  9. export declare const formatNames: FormatName[];