@kulupu-linku/sona 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,36 @@
1
+ // src/utils.ts
2
+ import { z } from "zod";
3
+ var Book = z.union([
4
+ z.literal("pu"),
5
+ z.literal("ku suli"),
6
+ z.literal("ku lili"),
7
+ z.literal("none")
8
+ ]);
9
+ var CoinedEra = z.union([z.literal("pre-pu"), z.literal("post-pu"), z.literal("post-ku")]);
10
+ var UsageCategory = z.union([
11
+ z.literal("core"),
12
+ z.literal("widespread"),
13
+ z.literal("common"),
14
+ z.literal("uncommon"),
15
+ z.literal("rare"),
16
+ z.literal("obscure")
17
+ ]);
18
+ var YearMonth = z.string().regex(/^20\d{2}-(0[1-9]|1[0-2])$/g);
19
+ var WritingSystem = z.enum([
20
+ "sitelen pona",
21
+ "sitelen sitelen",
22
+ "alphabet",
23
+ "syllabary",
24
+ "logography",
25
+ "tokiponido alphabet",
26
+ "tokiponido syllabary",
27
+ "tokiponido logography"
28
+ ]);
29
+
30
+ export {
31
+ Book,
32
+ CoinedEra,
33
+ UsageCategory,
34
+ YearMonth,
35
+ WritingSystem
36
+ };