Skip to content

Commit 045af0e

Browse files
committed
chore: arktype plugin
1 parent 7fe03ab commit 045af0e

File tree

11 files changed

+1399
-742
lines changed

11 files changed

+1399
-742
lines changed
Lines changed: 21 additions & 103 deletions
Original file line numberDiff line numberDiff line change
@@ -1,113 +1,31 @@
11
export const identifiers = {
2-
keywords: {
3-
false: 'false',
4-
true: 'true',
5-
},
6-
/**
7-
* {@link https://arktype.io/docs/primitives#number Number}
8-
*/
9-
number: {
10-
Infinity: 'Infinity',
11-
NaN: 'NaN',
12-
NegativeInfinity: 'NegativeInfinity',
13-
epoch: 'epoch',
14-
integer: 'integer',
15-
safe: 'safe',
16-
},
17-
/**
18-
* {@link https://arktype.io/docs/primitives Primitives}
19-
*/
202
primitives: {
21-
bigint: 'bigint',
3+
string: 'string',
4+
number: 'number',
5+
integer: 'number.integer',
226
boolean: 'boolean',
23-
keywords: 'keywords',
247
null: 'null',
25-
number: 'number',
26-
string: 'string',
27-
symbol: 'symbol',
288
undefined: 'undefined',
29-
unit: 'unit',
9+
unknown: 'unknown',
10+
never: 'never',
3011
},
31-
/**
32-
* {@link https://arktype.io/docs/primitives#string String}
33-
*/
3412
string: {
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',
44-
date: 'date',
45-
digits: 'digits',
46-
email: 'email',
47-
epoch: 'epoch',
48-
hex: 'hex',
49-
integer: 'integer',
50-
ip: 'ip',
51-
iso: 'iso',
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',
62-
url: 'url',
63-
uuid: 'uuid',
64-
v1: 'v1',
65-
v2: 'v2',
66-
v3: 'v3',
67-
v4: 'v4',
68-
v5: 'v5',
69-
v6: 'v6',
70-
v7: 'v7',
71-
v8: 'v8',
13+
email: 'string.email',
14+
uuid: 'string.uuid',
15+
url: 'string.url',
16+
date: 'string.date',
17+
iso: 'string.date.iso',
18+
time: 'string.date.time',
19+
ip: 'string.ip',
20+
v4: 'string.ip.v4',
21+
v6: 'string.ip.v6',
22+
},
23+
number: {
24+
integer: 'number.integer',
7225
},
73-
/**
74-
* {@link https://arktype.io/docs/type-api Type API}
75-
*/
7626
type: {
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',
27+
// Arktype doesn't have direct equivalents for all Valibot/Zod concepts
28+
// These are placeholders for future expansion
29+
unknown: 'unknown',
11230
},
113-
};
31+
};

0 commit comments

Comments
 (0)