@linxiraos/pi-omptype 1.0.3 → 1.0.9
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.
- package/CHANGELOG.md +1 -1
- package/dist/js/ark.js +16 -0
- package/dist/js/compile.js +942 -0
- package/dist/js/errors.js +394 -0
- package/dist/js/from-json-schema.js +234 -0
- package/dist/js/index.js +13 -0
- package/dist/js/infer.js +2 -0
- package/dist/js/interp.js +858 -0
- package/dist/js/ir.js +1700 -0
- package/dist/js/json-schema.js +312 -0
- package/dist/js/keywords.js +340 -0
- package/dist/js/type.js +3119 -0
- package/dist/js/typebox.js +375 -0
- package/dist/js/zod.js +269 -0
- package/dist/types/ark.d.ts +18 -0
- package/dist/types/compile.d.ts +7 -0
- package/dist/types/errors.d.ts +100 -0
- package/dist/types/from-json-schema.d.ts +9 -0
- package/dist/types/index.d.ts +13 -0
- package/dist/types/infer.d.ts +165 -0
- package/dist/types/interp.d.ts +33 -0
- package/dist/types/ir.d.ts +235 -0
- package/dist/types/json-schema.d.ts +22 -0
- package/dist/types/keywords.d.ts +7 -0
- package/dist/types/type.d.ts +591 -0
- package/dist/types/typebox.d.ts +212 -0
- package/dist/types/zod.d.ts +100 -0
- package/package.json +71 -63
package/CHANGELOG.md
CHANGED
package/dist/js/ark.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ArkType compatibility facade — `@linxiraos/pi-omptype/ark`.
|
|
3
|
+
*
|
|
4
|
+
* Lets code written against arktype keep its imports and names while running
|
|
5
|
+
* on the omptype lazy-JIT runtime: swap `from "arktype"` for
|
|
6
|
+
* `from "@linxiraos/pi-omptype/ark"` and nothing else changes. New code should
|
|
7
|
+
* import `@linxiraos/pi-omptype` directly.
|
|
8
|
+
*
|
|
9
|
+
* Compatibility affordance: `ArkError` / `ArkErrors` alias `OmpError` /
|
|
10
|
+
* `OmpErrors`. All schema builders, including recursive `scope()`, are
|
|
11
|
+
* re-exported unchanged.
|
|
12
|
+
*/
|
|
13
|
+
import { OmpError, OmpErrors } from "./errors.js";
|
|
14
|
+
export * from "./index.js";
|
|
15
|
+
export const ArkError = OmpError;
|
|
16
|
+
export const ArkErrors = OmpErrors;
|