-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathType.ts
More file actions
47 lines (46 loc) · 1.28 KB
/
Type.ts
File metadata and controls
47 lines (46 loc) · 1.28 KB
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
37
38
39
40
41
42
43
44
45
46
47
import type { Any } from "./Any"
import type { Array } from "./Array"
import type { Base } from "./Base"
import type { Boolean } from "./Boolean"
import type { From } from "./From"
import type { Function } from "./Function"
import type { Instance } from "./Instance"
import type { Intersection } from "./Intersection"
import type { Inverse } from "./Inverse"
import type { Lazy } from "./Lazy"
import type { Null } from "./Null"
import type { Number } from "./Number"
import type { _Object } from "./Object"
import type { Optional } from "./Optional"
import type { Readonly } from "./Readonly"
import type { Record } from "./Record"
import type { String } from "./String"
import type { Tuple } from "./Tuple"
import type { Undefined } from "./Undefined"
import type { Union } from "./Union"
import type { Unknown } from "./Unknown"
export type Type<V = unknown> = Omit<Base<V>, "constructor">
export namespace Type {
export interface FromClass {
any: Any
array: Array<any>
boolean: Boolean
from: From
function: Function
instance: Instance
intersection: Intersection
inverse: Inverse
lazy: Lazy
null: Null
number: Number
object: _Object
optional: Optional
readonly: Readonly
record: Record
string: String
tuple: Tuple
undefined: Undefined
union: Union
unknown: Unknown
}
}