1- import { tsc } from '~/tsc' ;
2-
31export const identifiers = {
42 keywords : {
5- false : tsc . identifier ( { text : 'false' } ) ,
6- true : tsc . identifier ( { text : 'true' } ) ,
3+ false : 'false' ,
4+ true : 'true' ,
75 } ,
86 /**
97 * {@link https://arktype.io/docs/primitives#number Number }
108 */
119 number : {
12- Infinity : tsc . identifier ( { text : 'Infinity' } ) ,
13- NaN : tsc . identifier ( { text : 'NaN' } ) ,
14- NegativeInfinity : tsc . identifier ( { text : 'NegativeInfinity' } ) ,
15- epoch : tsc . identifier ( { text : 'epoch' } ) ,
16- integer : tsc . identifier ( { text : 'integer' } ) ,
17- safe : tsc . identifier ( { text : 'safe' } ) ,
10+ Infinity : 'Infinity' ,
11+ NaN : 'NaN' ,
12+ NegativeInfinity : 'NegativeInfinity' ,
13+ epoch : 'epoch' ,
14+ integer : 'integer' ,
15+ safe : 'safe' ,
1816 } ,
1917 /**
2018 * {@link https://arktype.io/docs/primitives Primitives }
2119 */
2220 primitives : {
23- bigint : tsc . identifier ( { text : 'bigint' } ) ,
24- boolean : tsc . identifier ( { text : 'boolean' } ) ,
25- keywords : tsc . identifier ( { text : 'keywords' } ) ,
21+ bigint : 'bigint' ,
22+ boolean : 'boolean' ,
23+ keywords : 'keywords' ,
2624 null : 'null' ,
27- number : tsc . identifier ( { text : 'number' } ) ,
25+ number : 'number' ,
2826 string : 'string' ,
29- symbol : tsc . identifier ( { text : 'symbol' } ) ,
30- undefined : tsc . identifier ( { text : 'undefined' } ) ,
31- unit : tsc . identifier ( { text : 'unit' } ) ,
27+ symbol : 'symbol' ,
28+ undefined : 'undefined' ,
29+ unit : 'unit' ,
3230 } ,
3331 /**
3432 * {@link https://arktype.io/docs/primitives#string String }
3533 */
3634 string : {
37- NFC : tsc . identifier ( { text : 'NFC' } ) ,
38- NFD : tsc . identifier ( { text : 'NFD' } ) ,
39- NFKC : tsc . identifier ( { text : 'NFKC' } ) ,
40- NFKD : tsc . identifier ( { text : 'NFKD' } ) ,
41- alpha : tsc . identifier ( { text : 'alpha' } ) ,
42- alphanumeric : tsc . identifier ( { text : 'alphanumeric' } ) ,
43- base64 : tsc . identifier ( { text : 'base64' } ) ,
44- capitalize : tsc . identifier ( { text : 'capitalize' } ) ,
45- creditCard : tsc . identifier ( { text : 'creditCard' } ) ,
35+ NFC : 'NFC' ,
36+ NFD : 'NFD' ,
37+ NFKC : 'NFKC' ,
38+ NFKD : 'NFKD' ,
39+ alpha : 'alpha' ,
40+ alphanumeric : 'alphanumeric' ,
41+ base64 : 'base64' ,
42+ capitalize : 'capitalize' ,
43+ creditCard : 'creditCard' ,
4644 date : 'date' ,
47- digits : tsc . identifier ( { text : 'digits' } ) ,
45+ digits : 'digits' ,
4846 email : 'email' ,
49- epoch : tsc . identifier ( { text : 'epoch' } ) ,
50- hex : tsc . identifier ( { text : 'hex' } ) ,
51- integer : tsc . identifier ( { text : 'integer' } ) ,
47+ epoch : 'epoch' ,
48+ hex : 'hex' ,
49+ integer : 'integer' ,
5250 ip : 'ip' ,
5351 iso : 'iso' ,
54- json : tsc . identifier ( { text : 'json' } ) ,
55- lower : tsc . identifier ( { text : 'lower' } ) ,
56- normalize : tsc . identifier ( { text : 'normalize' } ) ,
57- numeric : tsc . identifier ( { text : 'numeric' } ) ,
58- parse : tsc . identifier ( { text : 'parse' } ) ,
59- preformatted : tsc . identifier ( { text : 'preformatted' } ) ,
60- regex : tsc . identifier ( { text : 'regex' } ) ,
61- semver : tsc . identifier ( { text : 'semver' } ) ,
62- trim : tsc . identifier ( { text : 'trim' } ) ,
63- upper : tsc . identifier ( { text : 'upper' } ) ,
52+ json : 'json' ,
53+ lower : 'lower' ,
54+ normalize : 'normalize' ,
55+ numeric : 'numeric' ,
56+ parse : 'parse' ,
57+ preformatted : 'preformatted' ,
58+ regex : 'regex' ,
59+ semver : 'semver' ,
60+ trim : 'trim' ,
61+ upper : 'upper' ,
6462 url : 'url' ,
6563 uuid : 'uuid' ,
6664 v1 : 'v1' ,
@@ -76,40 +74,40 @@ export const identifiers = {
7674 * {@link https://arktype.io/docs/type-api Type API }
7775 */
7876 type : {
79- $ : tsc . identifier ( { text : '$' } ) ,
80- allows : tsc . identifier ( { text : 'allows' } ) ,
81- and : tsc . identifier ( { text : 'and' } ) ,
82- array : tsc . identifier ( { text : 'array' } ) ,
83- as : tsc . identifier ( { text : 'as' } ) ,
84- assert : tsc . identifier ( { text : 'assert' } ) ,
85- brand : tsc . identifier ( { text : 'brand' } ) ,
86- configure : tsc . identifier ( { text : 'configure' } ) ,
87- default : tsc . identifier ( { text : 'default' } ) ,
88- describe : tsc . identifier ( { text : 'describe' } ) ,
89- description : tsc . identifier ( { text : 'description' } ) ,
90- equals : tsc . identifier ( { text : 'equals' } ) ,
91- exclude : tsc . identifier ( { text : 'exclude' } ) ,
92- expression : tsc . identifier ( { text : 'expression' } ) ,
93- extends : tsc . identifier ( { text : 'extends' } ) ,
94- extract : tsc . identifier ( { text : 'extract' } ) ,
95- filter : tsc . identifier ( { text : 'filter' } ) ,
96- from : tsc . identifier ( { text : 'from' } ) ,
97- ifEquals : tsc . identifier ( { text : 'ifEquals' } ) ,
98- ifExtends : tsc . identifier ( { text : 'ifExtends' } ) ,
99- infer : tsc . identifier ( { text : 'infer' } ) ,
100- inferIn : tsc . identifier ( { text : 'inferIn' } ) ,
101- intersect : tsc . identifier ( { text : 'intersect' } ) ,
102- json : tsc . identifier ( { text : 'json' } ) ,
103- meta : tsc . identifier ( { text : 'meta' } ) ,
104- narrow : tsc . identifier ( { text : 'narrow' } ) ,
105- onDeepUndeclaredKey : tsc . identifier ( { text : 'onDeepUndeclaredKey' } ) ,
106- onUndeclaredKey : tsc . identifier ( { text : 'onUndeclaredKey' } ) ,
107- optional : tsc . identifier ( { text : 'optional' } ) ,
108- or : tsc . identifier ( { text : 'or' } ) ,
109- overlaps : tsc . identifier ( { text : 'overlaps' } ) ,
110- pipe : tsc . identifier ( { text : 'pipe' } ) ,
111- select : tsc . identifier ( { text : 'select' } ) ,
112- to : tsc . identifier ( { text : 'to' } ) ,
113- toJsonSchema : tsc . identifier ( { text : 'toJsonSchema' } ) ,
77+ $ : '$' ,
78+ allows : 'allows' ,
79+ and : 'and' ,
80+ array : 'array' ,
81+ as : 'as' ,
82+ assert : 'assert' ,
83+ brand : 'brand' ,
84+ configure : 'configure' ,
85+ default : 'default' ,
86+ describe : 'describe' ,
87+ description : 'description' ,
88+ equals : 'equals' ,
89+ exclude : 'exclude' ,
90+ expression : 'expression' ,
91+ extends : 'extends' ,
92+ extract : 'extract' ,
93+ filter : 'filter' ,
94+ from : 'from' ,
95+ ifEquals : 'ifEquals' ,
96+ ifExtends : 'ifExtends' ,
97+ infer : 'infer' ,
98+ inferIn : 'inferIn' ,
99+ intersect : 'intersect' ,
100+ json : 'json' ,
101+ meta : 'meta' ,
102+ narrow : 'narrow' ,
103+ onDeepUndeclaredKey : 'onDeepUndeclaredKey' ,
104+ onUndeclaredKey : 'onUndeclaredKey' ,
105+ optional : 'optional' ,
106+ or : 'or' ,
107+ overlaps : 'overlaps' ,
108+ pipe : 'pipe' ,
109+ select : 'select' ,
110+ to : 'to' ,
111+ toJsonSchema : 'toJsonSchema' ,
114112 } ,
115113} ;
0 commit comments