@systemfsoftware/effect-schema-law 0.5.0 → 0.6.1
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/dist/index.d.ts +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +4 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
|
-
//#region src/bounded-union.d.ts
|
|
2
|
+
//#region src/bounded-union.kernel.d.ts
|
|
3
3
|
declare const boundedUnion: <Base extends readonly [Schema.Schema.Any, ...ReadonlyArray<Schema.Schema.Any>], Recur extends readonly [Schema.Schema.Any, ...ReadonlyArray<Schema.Schema.Any>]>(identifier: string, options: {
|
|
4
4
|
readonly base: Base;
|
|
5
5
|
readonly recur: Recur;
|
|
6
6
|
readonly maxDepth?: number;
|
|
7
7
|
}) => Schema.Schema<Schema.Schema.Type<Base[number] | Recur[number]>, Schema.Schema.Encoded<Base[number] | Recur[number]>, Schema.Schema.Context<Base[number] | Recur[number]>>;
|
|
8
8
|
//#endregion
|
|
9
|
-
//#region src/
|
|
9
|
+
//#region src/rule-of-schemas.kernel.d.ts
|
|
10
10
|
/**
|
|
11
11
|
* Property-test the round-trip and encode-stability laws of any Effect Schema.
|
|
12
12
|
*
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Arbitrary, Either, Schema } from "effect";
|
|
2
2
|
import { it } from "@effect/vitest";
|
|
3
|
-
//#region src/bounded-union.ts
|
|
3
|
+
//#region src/bounded-union.kernel.ts
|
|
4
4
|
const boundedUnion = (identifier, options) => {
|
|
5
5
|
const { base, maxDepth = 2, recur } = options;
|
|
6
6
|
const baseArbitraries = base.map((member) => Arbitrary.make(member));
|
|
@@ -14,7 +14,7 @@ const boundedUnion = (identifier, options) => {
|
|
|
14
14
|
});
|
|
15
15
|
};
|
|
16
16
|
//#endregion
|
|
17
|
-
//#region src/
|
|
17
|
+
//#region src/rule-of-schemas.kernel.ts
|
|
18
18
|
/**
|
|
19
19
|
* Property-test the round-trip and encode-stability laws of any Effect Schema.
|
|
20
20
|
*
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@systemfsoftware/effect-schema-law",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.6.1",
|
|
5
5
|
"author": "Ryan Lee <drdgvhbh@gmail.com>",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -45,9 +45,10 @@
|
|
|
45
45
|
"tsdown": "^0.22.9",
|
|
46
46
|
"vite-tsconfig-paths": "^6.1.1",
|
|
47
47
|
"vitest": "^4",
|
|
48
|
-
"@systemfsoftware/arethetypeswrong-cli": "^1.
|
|
48
|
+
"@systemfsoftware/arethetypeswrong-cli": "^1.1.1",
|
|
49
|
+
"@systemfsoftware/effect-gherkin-spec": "^0.5.1",
|
|
50
|
+
"@systemfsoftware/tsconfig": "^1.3.0",
|
|
49
51
|
"@systemfsoftware/oxlint-config": "^0.1.0",
|
|
50
|
-
"@systemfsoftware/tsconfig": "^1.2.6",
|
|
51
52
|
"@systemfsoftware/vitest-config": "^0.1.0"
|
|
52
53
|
},
|
|
53
54
|
"peerDependencies": {
|