@ghostry/fabricator 0.0.14 → 0.0.16
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/esm/Error/index.js +14 -9
- package/dist/esm/Fabricator/Constructor.js +44 -37
- package/dist/esm/Primitive/object/Fabricator.js +45 -43
- package/dist/esm/Primitive/object/Registry.js +41 -84
- package/dist/esm/Primitive/object/Stages.js +73 -0
- package/dist/esm/Primitive/object/compute/Fabricator.js +1 -7
- package/dist/esm/Primitive/object/compute/Registry.js +2 -4
- package/dist/esm/Primitive/recursive/Terminate.js +5 -13
- package/dist/esm/Unique/Capacity.js +2 -8
- package/dist/esm/Utility/ShallowMerge.js +1 -13
- package/dist/types/Adapter/Core.d.ts +2 -2
- package/dist/types/Adapter/Types.d.ts +1 -1
- package/dist/types/Bound.d.ts +1 -1
- package/dist/types/Distribution/index.d.ts +1 -1
- package/dist/types/Enumeration/Enumerate.d.ts +3 -3
- package/dist/types/Enumeration/Plan.d.ts +1 -1
- package/dist/types/Enumeration/Types.d.ts +4 -4
- package/dist/types/Error/index.d.ts +27 -18
- package/dist/types/Fabricator/Constructor.d.ts +4 -4
- package/dist/types/Fabricator/Fabricate.d.ts +5 -5
- package/dist/types/Fabricator/Types.d.ts +6 -6
- package/dist/types/Harnessing/Core.d.ts +3 -3
- package/dist/types/Harnessing/Salt.d.ts +1 -1
- package/dist/types/Harnessing/Types.d.ts +2 -2
- package/dist/types/Instance/Core.d.ts +4 -4
- package/dist/types/Instance/Stack/Async.d.ts +10 -6
- package/dist/types/Instance/Stack/Sync.d.ts +1 -1
- package/dist/types/Instance/Stack/Visible.d.ts +2 -2
- package/dist/types/Instance/Types.d.ts +6 -6
- package/dist/types/Primitive/always/Fabricator.d.ts +6 -6
- package/dist/types/Primitive/always/Registry.d.ts +2 -2
- package/dist/types/Primitive/always/Schema.d.ts +4 -4
- package/dist/types/Primitive/always/Types.d.ts +2 -2
- package/dist/types/Primitive/always/index.d.ts +5 -5
- package/dist/types/Primitive/array/Admits.d.ts +1 -1
- package/dist/types/Primitive/array/Fabricator.d.ts +6 -6
- package/dist/types/Primitive/array/Registry.d.ts +4 -4
- package/dist/types/Primitive/array/Schema.d.ts +5 -5
- package/dist/types/Primitive/array/Types.d.ts +6 -6
- package/dist/types/Primitive/array/index.d.ts +5 -5
- package/dist/types/Primitive/bigint/Admits.d.ts +1 -1
- package/dist/types/Primitive/bigint/Fabricator.d.ts +6 -6
- package/dist/types/Primitive/bigint/Registry.d.ts +4 -4
- package/dist/types/Primitive/bigint/Schema.d.ts +5 -5
- package/dist/types/Primitive/bigint/Types.d.ts +4 -4
- package/dist/types/Primitive/bigint/index.d.ts +5 -5
- package/dist/types/Primitive/boolean/Fabricator.d.ts +6 -6
- package/dist/types/Primitive/boolean/Registry.d.ts +2 -2
- package/dist/types/Primitive/boolean/Schema.d.ts +5 -5
- package/dist/types/Primitive/boolean/Types.d.ts +3 -3
- package/dist/types/Primitive/boolean/index.d.ts +6 -6
- package/dist/types/Primitive/choice/Fabricator.d.ts +6 -6
- package/dist/types/Primitive/choice/Registry.d.ts +2 -2
- package/dist/types/Primitive/choice/Schema.d.ts +5 -5
- package/dist/types/Primitive/choice/Types.d.ts +4 -4
- package/dist/types/Primitive/choice/index.d.ts +5 -5
- package/dist/types/Primitive/date/Admits.d.ts +1 -1
- package/dist/types/Primitive/date/Defaults.d.ts +2 -2
- package/dist/types/Primitive/date/Fabricator.d.ts +6 -6
- package/dist/types/Primitive/date/Registry.d.ts +3 -3
- package/dist/types/Primitive/date/Schema.d.ts +5 -5
- package/dist/types/Primitive/date/Types.d.ts +6 -6
- package/dist/types/Primitive/date/index.d.ts +5 -5
- package/dist/types/Primitive/derive/Fabricator.d.ts +7 -7
- package/dist/types/Primitive/derive/Registry.d.ts +2 -2
- package/dist/types/Primitive/derive/Schema.d.ts +6 -6
- package/dist/types/Primitive/derive/Types.d.ts +6 -6
- package/dist/types/Primitive/derive/index.d.ts +5 -5
- package/dist/types/Primitive/enum/Fabricator.d.ts +6 -6
- package/dist/types/Primitive/enum/Registry.d.ts +2 -2
- package/dist/types/Primitive/enum/Schema.d.ts +5 -5
- package/dist/types/Primitive/enum/Types.d.ts +3 -3
- package/dist/types/Primitive/enum/index.d.ts +5 -5
- package/dist/types/Primitive/index.d.ts +28 -28
- package/dist/types/Primitive/namespace.d.ts +21 -21
- package/dist/types/Primitive/null/Fabricator.d.ts +6 -6
- package/dist/types/Primitive/null/Registry.d.ts +1 -1
- package/dist/types/Primitive/null/Schema.d.ts +4 -4
- package/dist/types/Primitive/null/Types.d.ts +2 -2
- package/dist/types/Primitive/null/index.d.ts +5 -5
- package/dist/types/Primitive/nullable/Fabricator.d.ts +6 -6
- package/dist/types/Primitive/nullable/Registry.d.ts +2 -2
- package/dist/types/Primitive/nullable/Schema.d.ts +6 -6
- package/dist/types/Primitive/nullable/Types.d.ts +5 -5
- package/dist/types/Primitive/nullable/index.d.ts +6 -6
- package/dist/types/Primitive/nullish/Fabricator.d.ts +6 -6
- package/dist/types/Primitive/nullish/Registry.d.ts +2 -2
- package/dist/types/Primitive/nullish/Schema.d.ts +6 -6
- package/dist/types/Primitive/nullish/Types.d.ts +5 -5
- package/dist/types/Primitive/nullish/index.d.ts +6 -6
- package/dist/types/Primitive/number/Admits.d.ts +1 -1
- package/dist/types/Primitive/number/Defaults.d.ts +1 -1
- package/dist/types/Primitive/number/Fabricator.d.ts +6 -6
- package/dist/types/Primitive/number/Registry.d.ts +5 -5
- package/dist/types/Primitive/number/Schema.d.ts +5 -5
- package/dist/types/Primitive/number/Types.d.ts +6 -6
- package/dist/types/Primitive/number/index.d.ts +5 -5
- package/dist/types/Primitive/object/Fabricator.d.ts +20 -24
- package/dist/types/Primitive/object/Registry.d.ts +9 -11
- package/dist/types/Primitive/object/Schema.d.ts +22 -14
- package/dist/types/Primitive/object/Stages.d.ts +68 -0
- package/dist/types/Primitive/object/Types.d.ts +112 -18
- package/dist/types/Primitive/object/compute/Fabricator.d.ts +13 -14
- package/dist/types/Primitive/object/compute/Registry.d.ts +2 -2
- package/dist/types/Primitive/object/compute/Schema.d.ts +7 -7
- package/dist/types/Primitive/object/compute/Types.d.ts +9 -10
- package/dist/types/Primitive/object/compute/index.d.ts +5 -5
- package/dist/types/Primitive/object/index.d.ts +8 -8
- package/dist/types/Primitive/object/omit/Registry.d.ts +2 -2
- package/dist/types/Primitive/object/omit/index.d.ts +2 -2
- package/dist/types/Primitive/object/omittable/Fabricator.d.ts +6 -6
- package/dist/types/Primitive/object/omittable/Registry.d.ts +2 -2
- package/dist/types/Primitive/object/omittable/Schema.d.ts +6 -6
- package/dist/types/Primitive/object/omittable/Types.d.ts +5 -5
- package/dist/types/Primitive/object/omittable/index.d.ts +6 -6
- package/dist/types/Primitive/object/optional/Fabricator.d.ts +6 -6
- package/dist/types/Primitive/object/optional/Registry.d.ts +2 -2
- package/dist/types/Primitive/object/optional/Schema.d.ts +6 -6
- package/dist/types/Primitive/object/optional/Types.d.ts +5 -5
- package/dist/types/Primitive/object/optional/index.d.ts +6 -6
- package/dist/types/Primitive/object/pick/Registry.d.ts +2 -2
- package/dist/types/Primitive/object/pick/index.d.ts +2 -2
- package/dist/types/Primitive/opaque/Fabricator.d.ts +6 -6
- package/dist/types/Primitive/opaque/Registry.d.ts +2 -2
- package/dist/types/Primitive/opaque/Schema.d.ts +4 -4
- package/dist/types/Primitive/opaque/Types.d.ts +3 -3
- package/dist/types/Primitive/opaque/index.d.ts +5 -5
- package/dist/types/Primitive/record/Admits.d.ts +2 -2
- package/dist/types/Primitive/record/Fabricator.d.ts +6 -6
- package/dist/types/Primitive/record/Registry.d.ts +3 -3
- package/dist/types/Primitive/record/Schema.d.ts +5 -5
- package/dist/types/Primitive/record/Types.d.ts +6 -6
- package/dist/types/Primitive/record/index.d.ts +5 -5
- package/dist/types/Primitive/recursive/Fabricator.d.ts +6 -6
- package/dist/types/Primitive/recursive/Registry.d.ts +4 -4
- package/dist/types/Primitive/recursive/Schema.d.ts +4 -4
- package/dist/types/Primitive/recursive/Terminate.d.ts +1 -1
- package/dist/types/Primitive/recursive/Types.d.ts +3 -3
- package/dist/types/Primitive/recursive/index.d.ts +6 -6
- package/dist/types/Primitive/recursive/self/Fabricator.d.ts +5 -5
- package/dist/types/Primitive/recursive/self/Registry.d.ts +1 -1
- package/dist/types/Primitive/recursive/self/Schema.d.ts +4 -4
- package/dist/types/Primitive/recursive/self/Types.d.ts +2 -2
- package/dist/types/Primitive/recursive/self/index.d.ts +5 -5
- package/dist/types/Primitive/string/Admits.d.ts +1 -1
- package/dist/types/Primitive/string/Capacity.d.ts +1 -1
- package/dist/types/Primitive/string/Constants.d.ts +1 -1
- package/dist/types/Primitive/string/Fabricator.d.ts +6 -6
- package/dist/types/Primitive/string/Registry.d.ts +4 -4
- package/dist/types/Primitive/string/Schema.d.ts +5 -5
- package/dist/types/Primitive/string/Sources.d.ts +1 -1
- package/dist/types/Primitive/string/Types.d.ts +6 -6
- package/dist/types/Primitive/string/index.d.ts +6 -6
- package/dist/types/Primitive/symbol/Fabricator.d.ts +6 -6
- package/dist/types/Primitive/symbol/Registry.d.ts +2 -2
- package/dist/types/Primitive/symbol/Schema.d.ts +5 -5
- package/dist/types/Primitive/symbol/Types.d.ts +3 -3
- package/dist/types/Primitive/symbol/index.d.ts +5 -5
- package/dist/types/Primitive/tuple/Fabricator.d.ts +6 -6
- package/dist/types/Primitive/tuple/Registry.d.ts +2 -2
- package/dist/types/Primitive/tuple/Schema.d.ts +5 -5
- package/dist/types/Primitive/tuple/Types.d.ts +4 -4
- package/dist/types/Primitive/tuple/index.d.ts +5 -5
- package/dist/types/Primitive/undefinable/Fabricator.d.ts +6 -6
- package/dist/types/Primitive/undefinable/Registry.d.ts +2 -2
- package/dist/types/Primitive/undefinable/Schema.d.ts +6 -6
- package/dist/types/Primitive/undefinable/Types.d.ts +5 -5
- package/dist/types/Primitive/undefinable/index.d.ts +6 -6
- package/dist/types/Primitive/undefined/Fabricator.d.ts +6 -6
- package/dist/types/Primitive/undefined/Registry.d.ts +1 -1
- package/dist/types/Primitive/undefined/Schema.d.ts +4 -4
- package/dist/types/Primitive/undefined/Types.d.ts +2 -2
- package/dist/types/Primitive/undefined/index.d.ts +5 -5
- package/dist/types/Primitive/unique/Registry.d.ts +7 -7
- package/dist/types/Primitive/unique/index.d.ts +2 -2
- package/dist/types/Random/Generator/sfc32.d.ts +1 -1
- package/dist/types/Random/Types.d.ts +1 -1
- package/dist/types/Random/index.d.ts +1 -1
- package/dist/types/Schema/Core.d.ts +5 -5
- package/dist/types/Schema/Registry.d.ts +3 -3
- package/dist/types/Schema/Satisfies.d.ts +3 -3
- package/dist/types/Schema/Types.d.ts +5 -5
- package/dist/types/Types.d.ts +2 -2
- package/dist/types/Unique/Capacity.d.ts +1 -1
- package/dist/types/Unique/Distinct.d.ts +6 -6
- package/dist/types/Unique/Strategy.d.ts +5 -5
- package/dist/types/Utility/Core.d.ts +2 -2
- package/dist/types/Utility/DeepMerge.d.ts +2 -2
- package/dist/types/Utility/ShallowMerge.d.ts +7 -3
- package/dist/types/adapting.d.ts +3 -3
- package/dist/types/harnessing.d.ts +2 -2
- package/dist/types/index.d.ts +30 -30
- package/dist/types/internal.d.ts +16 -16
- package/package.json +2 -3
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { AdaptationsOf } from "../../../Adapter/Types";
|
|
2
|
-
import type { Fabricator as BaseFabricator, FabricatorContext } from "../../../Fabricator/Types";
|
|
3
|
-
import type { Trace } from "../../../Random/Types";
|
|
4
|
-
import { Children, Kind, Meta, type Adaptation } from "../../../Types";
|
|
5
|
-
import type { Schema } from "./Schema";
|
|
6
|
-
import type { Definition, Resolved, Meta as ThisMeta } from "./Types";
|
|
1
|
+
import type { AdaptationsOf } from "../../../Adapter/Types.ts";
|
|
2
|
+
import type { Fabricator as BaseFabricator, FabricatorContext } from "../../../Fabricator/Types.ts";
|
|
3
|
+
import type { Trace } from "../../../Random/Types.ts";
|
|
4
|
+
import { Children, Kind, Meta, type Adaptation } from "../../../Types.ts";
|
|
5
|
+
import type { Schema } from "./Schema.ts";
|
|
6
|
+
import type { Definition, Resolved, Meta as ThisMeta } from "./Types.ts";
|
|
7
7
|
export type Fabrication<$Fabricator extends Fabricator<any>> = $Fabricator extends Fabricator<infer $Schema> ? Resolved<$Schema[typeof Meta]["definition"]> : never;
|
|
8
8
|
export type Fabricator<$Schema extends {
|
|
9
9
|
[Meta]: ThisMeta;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Schema } from "./Schema";
|
|
2
|
-
import type { Definition } from "./Types";
|
|
1
|
+
import { Schema } from "./Schema.ts";
|
|
2
|
+
import type { Definition } from "./Types.ts";
|
|
3
3
|
export default function <const $Definition extends Definition>(definition: $Definition): Schema<$Definition>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { type AdaptationEntry } from "../../../Adapter/Core";
|
|
2
|
-
import type { Adaptations, Adapter, Adapting, WithAdaptations } from "../../../Adapter/Types";
|
|
3
|
-
import type { Produce } from "../../../Random/Types";
|
|
4
|
-
import { type SatisfiesThis } from "../../../Schema/Satisfies";
|
|
5
|
-
import type { AnySchema } from "../../../Schema/Types";
|
|
6
|
-
import type { Core, Definition, Fabricated, Resolved, Weights } from "./Types";
|
|
1
|
+
import { type AdaptationEntry } from "../../../Adapter/Core.ts";
|
|
2
|
+
import type { Adaptations, Adapter, Adapting, WithAdaptations } from "../../../Adapter/Types.ts";
|
|
3
|
+
import type { Produce } from "../../../Random/Types.ts";
|
|
4
|
+
import { type SatisfiesThis } from "../../../Schema/Satisfies.ts";
|
|
5
|
+
import type { AnySchema } from "../../../Schema/Types.ts";
|
|
6
|
+
import type { Core, Definition, Fabricated, Resolved, Weights } from "./Types.ts";
|
|
7
7
|
export interface Schema<$Definition extends Definition = Definition, $Adaptations extends Adaptations = {}> extends Core<$Definition, $Adaptations> {
|
|
8
8
|
/**
|
|
9
9
|
* Layer an opaque production on this schema's existing `[Meta]` — carrying
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Adaptations } from "../../../Adapter/Types";
|
|
2
|
-
import type { Produce } from "../../../Random/Types";
|
|
3
|
-
import type { AnySchema, Fabricated as FabricatedBy } from "../../../Schema/Types";
|
|
4
|
-
import { Kind, Meta, Omitted, type Adaptation, type Produced, type Produces } from "../../../Types";
|
|
1
|
+
import type { Adaptations } from "../../../Adapter/Types.ts";
|
|
2
|
+
import type { Produce } from "../../../Random/Types.ts";
|
|
3
|
+
import type { AnySchema, Fabricated as FabricatedBy } from "../../../Schema/Types.ts";
|
|
4
|
+
import { Kind, Meta, Omitted, type Adaptation, type Produced, type Produces } from "../../../Types.ts";
|
|
5
5
|
/**
|
|
6
6
|
* The wrapped field's own Schema — the value type an omittable field produces
|
|
7
7
|
* when its presence roll comes up present.
|
|
@@ -14,7 +14,7 @@ export type Fabricated<$Definition extends Definition, $Bindings extends unknown
|
|
|
14
14
|
* `.as(...)`, an opaque producer.
|
|
15
15
|
*/
|
|
16
16
|
export type Resolved<$Definition extends Definition> = Fabricated<$Definition> | typeof Omitted;
|
|
17
|
-
export type { Outcome } from "./Outcomes";
|
|
17
|
+
export type { Outcome } from "./Outcomes.ts";
|
|
18
18
|
/**
|
|
19
19
|
* Relative weights for `.weighted(...)`, keyed by `Outcome`. Keys optional — an
|
|
20
20
|
* omitted key falls back to baseline `1`, the same weight the 50/50 split
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from "./Fabricator";
|
|
2
|
-
export * from "./Outcomes";
|
|
3
|
-
export * from "./Registry";
|
|
4
|
-
export { default } from "./Registry";
|
|
5
|
-
export * from "./Schema";
|
|
6
|
-
export * from "./Types";
|
|
1
|
+
export * from "./Fabricator.ts";
|
|
2
|
+
export * from "./Outcomes.ts";
|
|
3
|
+
export * from "./Registry.ts";
|
|
4
|
+
export { default } from "./Registry.ts";
|
|
5
|
+
export * from "./Schema.ts";
|
|
6
|
+
export * from "./Types.ts";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { AdaptationsOf } from "../../../Adapter/Types";
|
|
2
|
-
import type { Fabricator as BaseFabricator, FabricatorContext } from "../../../Fabricator/Types";
|
|
3
|
-
import type { Trace } from "../../../Random/Types";
|
|
4
|
-
import { Children, Kind, Meta, type Adaptation } from "../../../Types";
|
|
5
|
-
import type { Schema } from "./Schema";
|
|
6
|
-
import type { Definition, Resolved, Meta as ThisMeta } from "./Types";
|
|
1
|
+
import type { AdaptationsOf } from "../../../Adapter/Types.ts";
|
|
2
|
+
import type { Fabricator as BaseFabricator, FabricatorContext } from "../../../Fabricator/Types.ts";
|
|
3
|
+
import type { Trace } from "../../../Random/Types.ts";
|
|
4
|
+
import { Children, Kind, Meta, type Adaptation } from "../../../Types.ts";
|
|
5
|
+
import type { Schema } from "./Schema.ts";
|
|
6
|
+
import type { Definition, Resolved, Meta as ThisMeta } from "./Types.ts";
|
|
7
7
|
export type Fabrication<$Fabricator extends Fabricator<any>> = $Fabricator extends Fabricator<infer $Schema> ? Resolved<$Schema[typeof Meta]["definition"]> : never;
|
|
8
8
|
export type Fabricator<$Schema extends {
|
|
9
9
|
[Meta]: ThisMeta;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Schema } from "./Schema";
|
|
2
|
-
import type { Definition } from "./Types";
|
|
1
|
+
import { Schema } from "./Schema.ts";
|
|
2
|
+
import type { Definition } from "./Types.ts";
|
|
3
3
|
export default function <const $Definition extends Definition>(definition: $Definition): Schema<$Definition>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { type AdaptationEntry } from "../../../Adapter/Core";
|
|
2
|
-
import type { Adaptations, Adapter, Adapting, WithAdaptations } from "../../../Adapter/Types";
|
|
3
|
-
import type { Produce } from "../../../Random/Types";
|
|
4
|
-
import { type SatisfiesThis } from "../../../Schema/Satisfies";
|
|
5
|
-
import type { AnySchema } from "../../../Schema/Types";
|
|
6
|
-
import type { Core, Definition, Fabricated, Resolved, Weights } from "./Types";
|
|
1
|
+
import { type AdaptationEntry } from "../../../Adapter/Core.ts";
|
|
2
|
+
import type { Adaptations, Adapter, Adapting, WithAdaptations } from "../../../Adapter/Types.ts";
|
|
3
|
+
import type { Produce } from "../../../Random/Types.ts";
|
|
4
|
+
import { type SatisfiesThis } from "../../../Schema/Satisfies.ts";
|
|
5
|
+
import type { AnySchema } from "../../../Schema/Types.ts";
|
|
6
|
+
import type { Core, Definition, Fabricated, Resolved, Weights } from "./Types.ts";
|
|
7
7
|
export interface Schema<$Definition extends Definition = Definition, $Adaptations extends Adaptations = {}> extends Core<$Definition, $Adaptations> {
|
|
8
8
|
/**
|
|
9
9
|
* Layer an opaque production on this schema's existing `[Meta]` — carrying
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Adaptations } from "../../../Adapter/Types";
|
|
2
|
-
import type { Produce } from "../../../Random/Types";
|
|
3
|
-
import type { AnySchema, Fabricated as FabricatedBy } from "../../../Schema/Types";
|
|
4
|
-
import { Kind, Meta, Omitted, type Adaptation, type Produced, type Produces } from "../../../Types";
|
|
1
|
+
import type { Adaptations } from "../../../Adapter/Types.ts";
|
|
2
|
+
import type { Produce } from "../../../Random/Types.ts";
|
|
3
|
+
import type { AnySchema, Fabricated as FabricatedBy } from "../../../Schema/Types.ts";
|
|
4
|
+
import { Kind, Meta, Omitted, type Adaptation, type Produced, type Produces } from "../../../Types.ts";
|
|
5
5
|
/**
|
|
6
6
|
* The wrapped field's Schema — the value type when the roll is
|
|
7
7
|
* present-with-a-value.
|
|
@@ -22,7 +22,7 @@ export type Fabricated<$Definition extends Definition, $Bindings extends unknown
|
|
|
22
22
|
* three-way roll or, via `.as(...)`, an opaque producer.
|
|
23
23
|
*/
|
|
24
24
|
export type Resolved<$Definition extends Definition> = Fabricated<$Definition> | typeof Omitted;
|
|
25
|
-
export type { Outcome } from "./Outcomes";
|
|
25
|
+
export type { Outcome } from "./Outcomes.ts";
|
|
26
26
|
/**
|
|
27
27
|
* Relative weights for `.weighted(...)`, keyed by `Outcome`. Keys optional — an
|
|
28
28
|
* omitted key falls back to baseline `1`, the same weight the uniform 1/3 split
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from "./Fabricator";
|
|
2
|
-
export * from "./Outcomes";
|
|
3
|
-
export * from "./Registry";
|
|
4
|
-
export { default } from "./Registry";
|
|
5
|
-
export * from "./Schema";
|
|
6
|
-
export * from "./Types";
|
|
1
|
+
export * from "./Fabricator.ts";
|
|
2
|
+
export * from "./Outcomes.ts";
|
|
3
|
+
export * from "./Registry.ts";
|
|
4
|
+
export { default } from "./Registry.ts";
|
|
5
|
+
export * from "./Schema.ts";
|
|
6
|
+
export * from "./Types.ts";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Schema } from "../Schema";
|
|
2
|
-
import type { DefinitionOf, Subsettable } from "../Types";
|
|
1
|
+
import type { Schema } from "../Schema.ts";
|
|
2
|
+
import type { DefinitionOf, Subsettable } from "../Types.ts";
|
|
3
3
|
/**
|
|
4
4
|
* `T.pick(source, keys)`: an `object` Schema with only `keys`, in source order.
|
|
5
5
|
* Not a kind — the result is an ordinary `object` Schema. See `subset` in
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./Registry";
|
|
2
|
-
export { default } from "./Registry";
|
|
1
|
+
export * from "./Registry.ts";
|
|
2
|
+
export { default } from "./Registry.ts";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { AdaptationsOf } from "../../Adapter/Types";
|
|
2
|
-
import type { FabricatorContext, NaiveFabricator } from "../../Fabricator/Types";
|
|
3
|
-
import type { Trace } from "../../Random/Types";
|
|
4
|
-
import { Kind, Meta, type Adaptation } from "../../Types";
|
|
5
|
-
import { Schema } from "./Schema";
|
|
6
|
-
import type { Fabricated, Meta as ThisMeta } from "./Types";
|
|
1
|
+
import type { AdaptationsOf } from "../../Adapter/Types.ts";
|
|
2
|
+
import type { FabricatorContext, NaiveFabricator } from "../../Fabricator/Types.ts";
|
|
3
|
+
import type { Trace } from "../../Random/Types.ts";
|
|
4
|
+
import { Kind, Meta, type Adaptation } from "../../Types.ts";
|
|
5
|
+
import { Schema } from "./Schema.ts";
|
|
6
|
+
import type { Fabricated, Meta as ThisMeta } from "./Types.ts";
|
|
7
7
|
export type Fabrication<$Fabricator extends Fabricator> = $Fabricator extends Fabricator<infer $Schema> ? $Schema[typeof Meta] extends ThisMeta<infer $T> ? Fabricated<$T> : never : never;
|
|
8
8
|
export type Fabricator<$Schema extends {
|
|
9
9
|
[Meta]: ThisMeta<any>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Produce } from "../../Random/Types";
|
|
2
|
-
import { Schema } from "./Schema";
|
|
1
|
+
import type { Produce } from "../../Random/Types.ts";
|
|
2
|
+
import { Schema } from "./Schema.ts";
|
|
3
3
|
/**
|
|
4
4
|
* A value this library has no kind for — a `Map`, a `Set`, a `URL`, a class
|
|
5
5
|
* instance — produced by `produce` and typed as whatever it returns, so
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type AdaptationEntry } from "../../Adapter/Core";
|
|
2
|
-
import type { Adaptations, Adapter, Adapting, WithAdaptations } from "../../Adapter/Types";
|
|
3
|
-
import { type SatisfiesThis } from "../../Schema/Satisfies";
|
|
4
|
-
import type { Core, Fabricated } from "./Types";
|
|
1
|
+
import { type AdaptationEntry } from "../../Adapter/Core.ts";
|
|
2
|
+
import type { Adaptations, Adapter, Adapting, WithAdaptations } from "../../Adapter/Types.ts";
|
|
3
|
+
import { type SatisfiesThis } from "../../Schema/Satisfies.ts";
|
|
4
|
+
import type { Core, Fabricated } from "./Types.ts";
|
|
5
5
|
/**
|
|
6
6
|
* Escape hatch for values no kind models — a `Map`, a `Set`, a `URL`, a class
|
|
7
7
|
* instance, a branded type. `produce` is supplied at construction and receives
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Adaptations } from "../../Adapter/Types";
|
|
2
|
-
import type { Produce } from "../../Random/Types";
|
|
3
|
-
import { Produces, type Adaptation, type Kind, type Meta, type Produced } from "../../Types";
|
|
1
|
+
import type { Adaptations } from "../../Adapter/Types.ts";
|
|
2
|
+
import type { Produce } from "../../Random/Types.ts";
|
|
3
|
+
import { Produces, type Adaptation, type Kind, type Meta, type Produced } from "../../Types.ts";
|
|
4
4
|
export type Fabricated<$T> = $T;
|
|
5
5
|
/**
|
|
6
6
|
* A single required member, unlike the two-arm unions kinds with a `whereby`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from "./Types";
|
|
2
|
-
export * from "./Schema";
|
|
3
|
-
export * from "./Fabricator";
|
|
4
|
-
export * from "./Registry";
|
|
5
|
-
export { default } from "./Registry";
|
|
1
|
+
export * from "./Types.ts";
|
|
2
|
+
export * from "./Schema.ts";
|
|
3
|
+
export * from "./Fabricator.ts";
|
|
4
|
+
export * from "./Registry.ts";
|
|
5
|
+
export { default } from "./Registry.ts";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type AdmittedEnds } from "../../Bound";
|
|
2
|
-
import type { Admits, InputAdmits, Meta } from "./Types";
|
|
1
|
+
import { type AdmittedEnds } from "../../Bound.ts";
|
|
2
|
+
import type { Admits, InputAdmits, Meta } from "./Types.ts";
|
|
3
3
|
/**
|
|
4
4
|
* Resolve `.admits(...)` against what is admitted already: `meta.admits`, or by
|
|
5
5
|
* default the written size ({@link toStatedSize}) — what an adapter states
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { AdaptationsOf } from "../../Adapter/Types";
|
|
2
|
-
import type { Fabricator as BaseFabricator, FabricatorContext, NaiveFabricator } from "../../Fabricator/Types";
|
|
3
|
-
import type { Trace } from "../../Random/Types";
|
|
4
|
-
import { Children, Kind, Meta, type Adaptation } from "../../Types";
|
|
5
|
-
import { Schema } from "./Schema";
|
|
6
|
-
import type { Fabricated, Key, Meta as ThisMeta, Value } from "./Types";
|
|
1
|
+
import type { AdaptationsOf } from "../../Adapter/Types.ts";
|
|
2
|
+
import type { Fabricator as BaseFabricator, FabricatorContext, NaiveFabricator } from "../../Fabricator/Types.ts";
|
|
3
|
+
import type { Trace } from "../../Random/Types.ts";
|
|
4
|
+
import { Children, Kind, Meta, type Adaptation } from "../../Types.ts";
|
|
5
|
+
import { Schema } from "./Schema.ts";
|
|
6
|
+
import type { Fabricated, Key, Meta as ThisMeta, Value } from "./Types.ts";
|
|
7
7
|
export type Fabrication<$Fabricator extends Fabricator> = $Fabricator extends Fabricator<infer $Schema extends {
|
|
8
8
|
[Meta]: ThisMeta;
|
|
9
9
|
}> ? Fabricated<$Schema[typeof Meta]["key"], $Schema[typeof Meta]["value"]> : never;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Produce } from "../../Random/Types";
|
|
2
|
-
import { Schema } from "./Schema";
|
|
3
|
-
import type { Fabricated, InputUniqueWhereby, Key, Value, Whereby } from "./Types";
|
|
1
|
+
import type { Produce } from "../../Random/Types.ts";
|
|
2
|
+
import { Schema } from "./Schema.ts";
|
|
3
|
+
import type { Fabricated, InputUniqueWhereby, Key, Value, Whereby } from "./Types.ts";
|
|
4
4
|
type ThisRegistry<$Key extends Key, $Value extends Value> = {
|
|
5
5
|
/**
|
|
6
6
|
* A record of `value` keyed by `key`, attempted `whereby.size` times —
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { type AdaptationEntry } from "../../Adapter/Core";
|
|
2
|
-
import type { Adaptations, Adapter, Adapting, WithAdaptations } from "../../Adapter/Types";
|
|
3
|
-
import type { Produce } from "../../Random/Types";
|
|
4
|
-
import { type SatisfiesThis } from "../../Schema/Satisfies";
|
|
5
|
-
import type { Core, Fabricated, Key, Value, InputAdmits } from "./Types";
|
|
1
|
+
import { type AdaptationEntry } from "../../Adapter/Core.ts";
|
|
2
|
+
import type { Adaptations, Adapter, Adapting, WithAdaptations } from "../../Adapter/Types.ts";
|
|
3
|
+
import type { Produce } from "../../Random/Types.ts";
|
|
4
|
+
import { type SatisfiesThis } from "../../Schema/Satisfies.ts";
|
|
5
|
+
import type { Core, Fabricated, Key, Value, InputAdmits } from "./Types.ts";
|
|
6
6
|
/**
|
|
7
7
|
* The buildable recipe for a `record`: a key Schema and a value Schema, drawn
|
|
8
8
|
* `whereby.size` times. `array`'s sibling — one repeated value shape and a
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { Adaptations } from "../../Adapter/Types";
|
|
2
|
-
import type { AdmittedEnds, InputAdmittedEnds, InputLength, Length } from "../../Bound";
|
|
3
|
-
import type { Produce } from "../../Random/Types";
|
|
4
|
-
import type { AnySchema, Fabricated as FabricatedBy } from "../../Schema/Types";
|
|
5
|
-
import { Produces, type Adaptation, type Kind, type Meta, type Produced } from "../../Types";
|
|
6
|
-
import type { Redraws } from "../../Unique/Strategy";
|
|
1
|
+
import type { Adaptations } from "../../Adapter/Types.ts";
|
|
2
|
+
import type { AdmittedEnds, InputAdmittedEnds, InputLength, Length } from "../../Bound.ts";
|
|
3
|
+
import type { Produce } from "../../Random/Types.ts";
|
|
4
|
+
import type { AnySchema, Fabricated as FabricatedBy } from "../../Schema/Types.ts";
|
|
5
|
+
import { Produces, type Adaptation, type Kind, type Meta, type Produced } from "../../Types.ts";
|
|
6
|
+
import type { Redraws } from "../../Unique/Strategy.ts";
|
|
7
7
|
/**
|
|
8
8
|
* A Schema usable as a record's keys: any Schema whose fabricated value is a
|
|
9
9
|
* legal JS property key. Constrained through the phantom `[Produces]` marker
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from "./Types";
|
|
2
|
-
export * from "./Schema";
|
|
3
|
-
export * from "./Fabricator";
|
|
4
|
-
export * from "./Registry";
|
|
5
|
-
export { default } from "./Registry";
|
|
1
|
+
export * from "./Types.ts";
|
|
2
|
+
export * from "./Schema.ts";
|
|
3
|
+
export * from "./Fabricator.ts";
|
|
4
|
+
export * from "./Registry.ts";
|
|
5
|
+
export { default } from "./Registry.ts";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { AdaptationsOf } from "../../Adapter/Types";
|
|
2
|
-
import type { ConstructionContext, FabricatorContext, NaiveFabricator } from "../../Fabricator/Types";
|
|
3
|
-
import type { RandomSource, Trace } from "../../Random/Types";
|
|
4
|
-
import { Kind, Meta, type Adaptation } from "../../Types";
|
|
5
|
-
import { Schema } from "./Schema";
|
|
6
|
-
import type { Fabricated, Meta as ThisMeta } from "./Types";
|
|
1
|
+
import type { AdaptationsOf } from "../../Adapter/Types.ts";
|
|
2
|
+
import type { ConstructionContext, FabricatorContext, NaiveFabricator } from "../../Fabricator/Types.ts";
|
|
3
|
+
import type { RandomSource, Trace } from "../../Random/Types.ts";
|
|
4
|
+
import { Kind, Meta, type Adaptation } from "../../Types.ts";
|
|
5
|
+
import { Schema } from "./Schema.ts";
|
|
6
|
+
import type { Fabricated, Meta as ThisMeta } from "./Types.ts";
|
|
7
7
|
export type Fabrication<$Fabricator extends Fabricator> = $Fabricator extends Fabricator<infer $Schema extends {
|
|
8
8
|
[Meta]: ThisMeta;
|
|
9
9
|
}> ? Fabricated<$Schema[typeof Meta]["body"]> : never;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { AnySchema } from "../../Schema/Types";
|
|
2
|
-
import { type Schema as SelfSchema } from "./self";
|
|
3
|
-
import { Schema } from "./Schema";
|
|
4
|
-
import type { Whereby } from "./Types";
|
|
1
|
+
import type { AnySchema } from "../../Schema/Types.ts";
|
|
2
|
+
import { type Schema as SelfSchema } from "./self/index.ts";
|
|
3
|
+
import { Schema } from "./Schema.ts";
|
|
4
|
+
import type { Whereby } from "./Types.ts";
|
|
5
5
|
/**
|
|
6
6
|
* `T.recursive(body)` — a builder, not a Schema, matching `array`/`record`:
|
|
7
7
|
* `.whereby({ depth })` is what produces one; no bare form. `terminal` is
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type AdaptationEntry } from "../../Adapter/Core";
|
|
2
|
-
import type { Adaptations, Adapter, Adapting, WithAdaptations } from "../../Adapter/Types";
|
|
3
|
-
import { type SatisfiesThis } from "../../Schema/Satisfies";
|
|
4
|
-
import type { Core, Fabricated } from "./Types";
|
|
1
|
+
import { type AdaptationEntry } from "../../Adapter/Core.ts";
|
|
2
|
+
import type { Adaptations, Adapter, Adapting, WithAdaptations } from "../../Adapter/Types.ts";
|
|
3
|
+
import { type SatisfiesThis } from "../../Schema/Satisfies.ts";
|
|
4
|
+
import type { Core, Fabricated } from "./Types.ts";
|
|
5
5
|
/**
|
|
6
6
|
* A recursive schema, produced by `.whereby({ depth })` — see `Registry.ts` for
|
|
7
7
|
* the builder `T.recursive(body)` itself returns. `terminal` is optional there;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Adaptations } from "../../Adapter/Types";
|
|
2
|
-
import type { AnySchema, Fabricated as FabricatedBy } from "../../Schema/Types";
|
|
3
|
-
import { Produces, type Adaptation, type Kind, type Meta, type Produced } from "../../Types";
|
|
1
|
+
import type { Adaptations } from "../../Adapter/Types.ts";
|
|
2
|
+
import type { AnySchema, Fabricated as FabricatedBy } from "../../Schema/Types.ts";
|
|
3
|
+
import { Produces, type Adaptation, type Kind, type Meta, type Produced } from "../../Types.ts";
|
|
4
4
|
/**
|
|
5
5
|
* Fixed point of a recursive schema. A self-referential alias, normally
|
|
6
6
|
* `TS2456` ("`RecursiveValue` circularly references itself") — legal _only_
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from "./Types";
|
|
2
|
-
export * from "./Schema";
|
|
3
|
-
export * from "./Fabricator";
|
|
4
|
-
export * from "./Registry";
|
|
5
|
-
export { default } from "./Registry";
|
|
6
|
-
export * as self from "./self";
|
|
1
|
+
export * from "./Types.ts";
|
|
2
|
+
export * from "./Schema.ts";
|
|
3
|
+
export * from "./Fabricator.ts";
|
|
4
|
+
export * from "./Registry.ts";
|
|
5
|
+
export { default } from "./Registry.ts";
|
|
6
|
+
export * as self from "./self/index.ts";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { FabricatorContext, NaiveFabricator } from "../../../Fabricator/Types";
|
|
2
|
-
import type { Trace } from "../../../Random/Types";
|
|
3
|
-
import { Kind, Meta } from "../../../Types";
|
|
4
|
-
import type { Schema } from "./Schema";
|
|
5
|
-
import type { Fabricated, Meta as ThisMeta } from "./Types";
|
|
1
|
+
import type { FabricatorContext, NaiveFabricator } from "../../../Fabricator/Types.ts";
|
|
2
|
+
import type { Trace } from "../../../Random/Types.ts";
|
|
3
|
+
import { Kind, Meta } from "../../../Types.ts";
|
|
4
|
+
import type { Schema } from "./Schema.ts";
|
|
5
|
+
import type { Fabricated, Meta as ThisMeta } from "./Types.ts";
|
|
6
6
|
export type Fabrication<$Fabricator extends Fabricator> = $Fabricator extends Fabricator<infer $Bindings> ? $Bindings[0] : never;
|
|
7
7
|
/**
|
|
8
8
|
* Deliberately not parameterized by a Schema the way every other kind's
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type AdaptationEntry } from "../../../Adapter/Core";
|
|
2
|
-
import type { Adaptations, Adapter, Adapting, WithAdaptations } from "../../../Adapter/Types";
|
|
3
|
-
import { type SatisfiesThis } from "../../../Schema/Satisfies";
|
|
4
|
-
import type { Core, Fabricated } from "./Types";
|
|
1
|
+
import { type AdaptationEntry } from "../../../Adapter/Core.ts";
|
|
2
|
+
import type { Adaptations, Adapter, Adapting, WithAdaptations } from "../../../Adapter/Types.ts";
|
|
3
|
+
import { type SatisfiesThis } from "../../../Schema/Satisfies.ts";
|
|
4
|
+
import type { Core, Fabricated } from "./Types.ts";
|
|
5
5
|
/**
|
|
6
6
|
* The placeholder `T.recursive`'s body callback receives in place of the schema
|
|
7
7
|
* being defined — everywhere `self` appears, it stands for "recurse one level
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Adaptations } from "../../../Adapter/Types";
|
|
2
|
-
import { Produces, type Adaptation, type Produced, type Kind, type Meta } from "../../../Types";
|
|
1
|
+
import type { Adaptations } from "../../../Adapter/Types.ts";
|
|
2
|
+
import { Produces, type Adaptation, type Produced, type Kind, type Meta } from "../../../Types.ts";
|
|
3
3
|
/**
|
|
4
4
|
* The value a `self` reference resolves to at this position — whatever the
|
|
5
5
|
* enclosing `T.recursive`'s current expansion binds it to. Reads `bindings[0]`,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from "./Types";
|
|
2
|
-
export * from "./Schema";
|
|
3
|
-
export * from "./Fabricator";
|
|
4
|
-
export * from "./Registry";
|
|
5
|
-
export { default } from "./Registry";
|
|
1
|
+
export * from "./Types.ts";
|
|
2
|
+
export * from "./Schema.ts";
|
|
3
|
+
export * from "./Fabricator.ts";
|
|
4
|
+
export * from "./Registry.ts";
|
|
5
|
+
export { default } from "./Registry.ts";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Admits, InputAdmits, Meta } from "./Types";
|
|
1
|
+
import type { Admits, InputAdmits, Meta } from "./Types.ts";
|
|
2
2
|
/**
|
|
3
3
|
* Resolve `.admits(...)` against what is admitted already: `meta.admits`, or by
|
|
4
4
|
* default the drawn `length` — what an adapter states without one. Under
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { AdaptationsOf } from "../../Adapter/Types";
|
|
2
|
-
import type { FabricatorContext, NaiveFabricator } from "../../Fabricator/Types";
|
|
3
|
-
import type { Trace } from "../../Random/Types";
|
|
4
|
-
import { Claim, Kind, Meta, type Adaptation } from "../../Types";
|
|
5
|
-
import { Schema } from "./Schema";
|
|
6
|
-
import type { Fabricated, Meta as ThisMeta } from "./Types";
|
|
1
|
+
import type { AdaptationsOf } from "../../Adapter/Types.ts";
|
|
2
|
+
import type { FabricatorContext, NaiveFabricator } from "../../Fabricator/Types.ts";
|
|
3
|
+
import type { Trace } from "../../Random/Types.ts";
|
|
4
|
+
import { Claim, Kind, Meta, type Adaptation } from "../../Types.ts";
|
|
5
|
+
import { Schema } from "./Schema.ts";
|
|
6
|
+
import type { Fabricated, Meta as ThisMeta } from "./Types.ts";
|
|
7
7
|
export type Fabrication<_ extends Fabricator> = Fabricated;
|
|
8
8
|
export type Fabricator<$Schema extends {
|
|
9
9
|
[Meta]: ThisMeta;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Produce } from "../../Random/Types";
|
|
2
|
-
import { Kind } from "../../Types";
|
|
3
|
-
import { Schema } from "./Schema";
|
|
4
|
-
import type { Fabricated, InputUniqueWhereby, InputWhereby, Whereby } from "./Types";
|
|
1
|
+
import type { Produce } from "../../Random/Types.ts";
|
|
2
|
+
import { Kind } from "../../Types.ts";
|
|
3
|
+
import { Schema } from "./Schema.ts";
|
|
4
|
+
import type { Fabricated, InputUniqueWhereby, InputWhereby, Whereby } from "./Types.ts";
|
|
5
5
|
declare const _default: {
|
|
6
6
|
/**
|
|
7
7
|
* The builder carries the primitive's `[Kind]` so it can be named directly as
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { type AdaptationEntry } from "../../Adapter/Core";
|
|
2
|
-
import type { Adaptations, Adapter, Adapting, WithAdaptations } from "../../Adapter/Types";
|
|
3
|
-
import type { Produce } from "../../Random/Types";
|
|
4
|
-
import { type SatisfiesThis } from "../../Schema/Satisfies";
|
|
5
|
-
import type { Core, Fabricated, Meta as ThisMeta, Admits, InputAdmits } from "./Types";
|
|
1
|
+
import { type AdaptationEntry } from "../../Adapter/Core.ts";
|
|
2
|
+
import type { Adaptations, Adapter, Adapting, WithAdaptations } from "../../Adapter/Types.ts";
|
|
3
|
+
import type { Produce } from "../../Random/Types.ts";
|
|
4
|
+
import { type SatisfiesThis } from "../../Schema/Satisfies.ts";
|
|
5
|
+
import type { Core, Fabricated, Meta as ThisMeta, Admits, InputAdmits } from "./Types.ts";
|
|
6
6
|
/**
|
|
7
7
|
* Buildable `string` recipe: length/composition (`whereby` — required, unlike
|
|
8
8
|
* `number`/`date`; no natural bound to fuzz a length to), or opaque production
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CharacterSource, CodepointRange, Composition } from "./Types";
|
|
1
|
+
import type { CharacterSource, CodepointRange, Composition } from "./Types.ts";
|
|
2
2
|
/**
|
|
3
3
|
* A composition as weighted character sources — the shape `Fabricator.ts` draws
|
|
4
4
|
* from and `Capacity.ts` counts. No composition is every Unicode scalar value;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { Adaptations } from "../../Adapter/Types";
|
|
2
|
-
import type { AdmittedEnds, InputAdmittedEnds, InputLength, Length } from "../../Bound";
|
|
3
|
-
import type { Produce } from "../../Random/Types";
|
|
4
|
-
import type { Adaptation, Kind, Meta, Produced, Produces } from "../../Types";
|
|
5
|
-
import type { classes } from "./Constants";
|
|
6
|
-
import type { Redraws } from "../../Unique/Strategy";
|
|
1
|
+
import type { Adaptations } from "../../Adapter/Types.ts";
|
|
2
|
+
import type { AdmittedEnds, InputAdmittedEnds, InputLength, Length } from "../../Bound.ts";
|
|
3
|
+
import type { Produce } from "../../Random/Types.ts";
|
|
4
|
+
import type { Adaptation, Kind, Meta, Produced, Produces } from "../../Types.ts";
|
|
5
|
+
import type { classes } from "./Constants.ts";
|
|
6
|
+
import type { Redraws } from "../../Unique/Strategy.ts";
|
|
7
7
|
/** An inclusive range of Unicode code points. */
|
|
8
8
|
export type CodepointRange = {
|
|
9
9
|
from: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from "./Constants";
|
|
2
|
-
export * from "./Fabricator";
|
|
3
|
-
export * from "./Registry";
|
|
4
|
-
export { default } from "./Registry";
|
|
5
|
-
export * from "./Schema";
|
|
6
|
-
export * from "./Types";
|
|
1
|
+
export * from "./Constants.ts";
|
|
2
|
+
export * from "./Fabricator.ts";
|
|
3
|
+
export * from "./Registry.ts";
|
|
4
|
+
export { default } from "./Registry.ts";
|
|
5
|
+
export * from "./Schema.ts";
|
|
6
|
+
export * from "./Types.ts";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { AdaptationsOf } from "../../Adapter/Types";
|
|
2
|
-
import type { FabricatorContext, NaiveFabricator } from "../../Fabricator/Types";
|
|
3
|
-
import type { Trace } from "../../Random/Types";
|
|
4
|
-
import { Kind, Meta, type Adaptation } from "../../Types";
|
|
5
|
-
import { Schema } from "./Schema";
|
|
6
|
-
import type { Fabricated, Meta as ThisMeta } from "./Types";
|
|
1
|
+
import type { AdaptationsOf } from "../../Adapter/Types.ts";
|
|
2
|
+
import type { FabricatorContext, NaiveFabricator } from "../../Fabricator/Types.ts";
|
|
3
|
+
import type { Trace } from "../../Random/Types.ts";
|
|
4
|
+
import { Kind, Meta, type Adaptation } from "../../Types.ts";
|
|
5
|
+
import { Schema } from "./Schema.ts";
|
|
6
|
+
import type { Fabricated, Meta as ThisMeta } from "./Types.ts";
|
|
7
7
|
export type Fabrication<_ extends Fabricator> = Fabricated;
|
|
8
8
|
export type Fabricator<$Schema extends {
|
|
9
9
|
[Meta]: ThisMeta;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Adaptations } from "../../Adapter/Types";
|
|
2
|
-
import { Schema } from "./Schema";
|
|
1
|
+
import type { Adaptations } from "../../Adapter/Types.ts";
|
|
2
|
+
import { Schema } from "./Schema.ts";
|
|
3
3
|
type ThisRegistry = Schema<{}, Adaptations> & {
|
|
4
4
|
keyed: (key: string) => Schema<{
|
|
5
5
|
key: string;
|