@tsed/schema
Version:
JsonSchema module for Ts.ED Framework
50 lines (49 loc) • 1.62 kB
TypeScript
import type { Infer } from "../domain/types.js";
import { allOf } from "./allOf.js";
import { any } from "./any.js";
import { anyOf } from "./anyOf.js";
import { boolean } from "./boolean.js";
import { array, map, record, set } from "./collection.js";
import { date, datetime, time } from "./date.js";
import { email } from "./email.js";
import { enums } from "./enums.js";
import { from } from "./from.js";
import { integer } from "./integer.js";
import { lazyRef } from "./lazyRef.js";
import { number } from "./number.js";
import { object } from "./object.js";
import { oneOf } from "./oneOf.js";
import { string } from "./string.js";
import { uri } from "./uri.js";
import { url } from "./url.js";
/**
* A namespace of all schema builder functions.
* @schemaFunctional
*/
export declare const s: {
readonly from: typeof from;
readonly allOf: typeof allOf;
readonly anyOf: typeof anyOf;
readonly any: typeof any;
readonly boolean: typeof boolean;
readonly array: typeof array;
readonly map: typeof map;
readonly set: typeof set;
readonly record: typeof record;
readonly date: typeof date;
readonly datetime: typeof datetime;
readonly time: typeof time;
readonly email: typeof email;
readonly enums: typeof enums;
readonly integer: typeof integer;
readonly number: typeof number;
readonly lazyRef: typeof lazyRef;
readonly object: typeof object;
readonly oneOf: typeof oneOf;
readonly string: typeof string;
readonly uri: typeof uri;
readonly url: typeof url;
};
export declare namespace s {
type infer<S> = Infer<S>;
}