-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschemas.ts
36 lines (34 loc) · 1.03 KB
/
schemas.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright (c) 2024 Andres Celis. MIT license.
/**
* @module schemas
* Built-in collection of schemas.
* @example
* ```ts
* import { string, number, object, array } from "typecheck/schemas";
*
* const UserSchema = object({
* name: string(),
* age: number(),
* friends: array(string()),
* });
*/
export * from "./schemas/array.ts";
export * from "./schemas/boolean.ts";
export * from "./schemas/custom.ts";
export * from "./schemas/date.ts";
export * from "./schemas/either.ts";
export * from "./schemas/enumerated.ts";
export * from "./schemas/lazy.ts";
export * from "./schemas/literal.ts";
export * from "./schemas/never.ts";
export * from "./schemas/nullable.ts";
export * from "./schemas/number.ts";
export * from "./schemas/object.ts";
export * from "./schemas/optional.ts";
export * from "./schemas/pipe.ts";
export * from "./schemas/record.ts";
export * from "./schemas/strict.ts";
export * from "./schemas/string.ts";
export * from "./schemas/transform.ts";
export * from "./schemas/tuple.ts";
export * from "./schemas/unknown.ts";