tangled
alpha
login
or
join now
tylur.dev
/
prototypey
prototypey.org - atproto lexicon typescript toolkit - mirror https://github.com/tylersayshi/prototypey
1
fork
atom
overview
issues
pulls
pipelines
constrain string formats
Tyler
4 months ago
de262808
207eb2de
+12
-1
1 changed file
expand all
collapse all
unified
split
src
lib.ts
+12
-1
src/lib.ts
···
45
}
46
47
interface StringOptions extends LexiconItemCommonOptions {
48
-
format?: string;
0
0
0
0
0
0
0
0
0
0
0
49
maxLength?: number;
50
minLength?: number;
51
maxGraphemes?: number;
···
45
}
46
47
interface StringOptions extends LexiconItemCommonOptions {
48
+
format?:
49
+
| "at-identifier"
50
+
| "at-uri"
51
+
| "cid"
52
+
| "datetime"
53
+
| "did"
54
+
| "handle"
55
+
| "nsid"
56
+
| "tid"
57
+
| "record-key"
58
+
| "uri"
59
+
| "language";
60
maxLength?: number;
61
minLength?: number;
62
maxGraphemes?: number;