@ghostry/fabricator 0.0.14 → 0.0.15

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.
Files changed (182) hide show
  1. package/dist/types/Adapter/Core.d.ts +2 -2
  2. package/dist/types/Adapter/Types.d.ts +1 -1
  3. package/dist/types/Bound.d.ts +1 -1
  4. package/dist/types/Distribution/index.d.ts +1 -1
  5. package/dist/types/Enumeration/Enumerate.d.ts +3 -3
  6. package/dist/types/Enumeration/Plan.d.ts +1 -1
  7. package/dist/types/Enumeration/Types.d.ts +4 -4
  8. package/dist/types/Fabricator/Constructor.d.ts +4 -4
  9. package/dist/types/Fabricator/Fabricate.d.ts +5 -5
  10. package/dist/types/Fabricator/Types.d.ts +6 -6
  11. package/dist/types/Harnessing/Core.d.ts +3 -3
  12. package/dist/types/Harnessing/Salt.d.ts +1 -1
  13. package/dist/types/Harnessing/Types.d.ts +2 -2
  14. package/dist/types/Instance/Core.d.ts +4 -4
  15. package/dist/types/Instance/Stack/Async.d.ts +1 -1
  16. package/dist/types/Instance/Stack/Sync.d.ts +1 -1
  17. package/dist/types/Instance/Stack/Visible.d.ts +2 -2
  18. package/dist/types/Instance/Types.d.ts +6 -6
  19. package/dist/types/Primitive/always/Fabricator.d.ts +6 -6
  20. package/dist/types/Primitive/always/Registry.d.ts +2 -2
  21. package/dist/types/Primitive/always/Schema.d.ts +4 -4
  22. package/dist/types/Primitive/always/Types.d.ts +2 -2
  23. package/dist/types/Primitive/always/index.d.ts +5 -5
  24. package/dist/types/Primitive/array/Admits.d.ts +1 -1
  25. package/dist/types/Primitive/array/Fabricator.d.ts +6 -6
  26. package/dist/types/Primitive/array/Registry.d.ts +4 -4
  27. package/dist/types/Primitive/array/Schema.d.ts +5 -5
  28. package/dist/types/Primitive/array/Types.d.ts +6 -6
  29. package/dist/types/Primitive/array/index.d.ts +5 -5
  30. package/dist/types/Primitive/bigint/Admits.d.ts +1 -1
  31. package/dist/types/Primitive/bigint/Fabricator.d.ts +6 -6
  32. package/dist/types/Primitive/bigint/Registry.d.ts +4 -4
  33. package/dist/types/Primitive/bigint/Schema.d.ts +5 -5
  34. package/dist/types/Primitive/bigint/Types.d.ts +4 -4
  35. package/dist/types/Primitive/bigint/index.d.ts +5 -5
  36. package/dist/types/Primitive/boolean/Fabricator.d.ts +6 -6
  37. package/dist/types/Primitive/boolean/Registry.d.ts +2 -2
  38. package/dist/types/Primitive/boolean/Schema.d.ts +5 -5
  39. package/dist/types/Primitive/boolean/Types.d.ts +3 -3
  40. package/dist/types/Primitive/boolean/index.d.ts +6 -6
  41. package/dist/types/Primitive/choice/Fabricator.d.ts +6 -6
  42. package/dist/types/Primitive/choice/Registry.d.ts +2 -2
  43. package/dist/types/Primitive/choice/Schema.d.ts +5 -5
  44. package/dist/types/Primitive/choice/Types.d.ts +4 -4
  45. package/dist/types/Primitive/choice/index.d.ts +5 -5
  46. package/dist/types/Primitive/date/Admits.d.ts +1 -1
  47. package/dist/types/Primitive/date/Defaults.d.ts +2 -2
  48. package/dist/types/Primitive/date/Fabricator.d.ts +6 -6
  49. package/dist/types/Primitive/date/Registry.d.ts +3 -3
  50. package/dist/types/Primitive/date/Schema.d.ts +5 -5
  51. package/dist/types/Primitive/date/Types.d.ts +6 -6
  52. package/dist/types/Primitive/date/index.d.ts +5 -5
  53. package/dist/types/Primitive/derive/Fabricator.d.ts +7 -7
  54. package/dist/types/Primitive/derive/Registry.d.ts +2 -2
  55. package/dist/types/Primitive/derive/Schema.d.ts +6 -6
  56. package/dist/types/Primitive/derive/Types.d.ts +6 -6
  57. package/dist/types/Primitive/derive/index.d.ts +5 -5
  58. package/dist/types/Primitive/enum/Fabricator.d.ts +6 -6
  59. package/dist/types/Primitive/enum/Registry.d.ts +2 -2
  60. package/dist/types/Primitive/enum/Schema.d.ts +5 -5
  61. package/dist/types/Primitive/enum/Types.d.ts +3 -3
  62. package/dist/types/Primitive/enum/index.d.ts +5 -5
  63. package/dist/types/Primitive/index.d.ts +28 -28
  64. package/dist/types/Primitive/namespace.d.ts +21 -21
  65. package/dist/types/Primitive/null/Fabricator.d.ts +6 -6
  66. package/dist/types/Primitive/null/Registry.d.ts +1 -1
  67. package/dist/types/Primitive/null/Schema.d.ts +4 -4
  68. package/dist/types/Primitive/null/Types.d.ts +2 -2
  69. package/dist/types/Primitive/null/index.d.ts +5 -5
  70. package/dist/types/Primitive/nullable/Fabricator.d.ts +6 -6
  71. package/dist/types/Primitive/nullable/Registry.d.ts +2 -2
  72. package/dist/types/Primitive/nullable/Schema.d.ts +6 -6
  73. package/dist/types/Primitive/nullable/Types.d.ts +5 -5
  74. package/dist/types/Primitive/nullable/index.d.ts +6 -6
  75. package/dist/types/Primitive/nullish/Fabricator.d.ts +6 -6
  76. package/dist/types/Primitive/nullish/Registry.d.ts +2 -2
  77. package/dist/types/Primitive/nullish/Schema.d.ts +6 -6
  78. package/dist/types/Primitive/nullish/Types.d.ts +5 -5
  79. package/dist/types/Primitive/nullish/index.d.ts +6 -6
  80. package/dist/types/Primitive/number/Admits.d.ts +1 -1
  81. package/dist/types/Primitive/number/Defaults.d.ts +1 -1
  82. package/dist/types/Primitive/number/Fabricator.d.ts +6 -6
  83. package/dist/types/Primitive/number/Registry.d.ts +5 -5
  84. package/dist/types/Primitive/number/Schema.d.ts +5 -5
  85. package/dist/types/Primitive/number/Types.d.ts +6 -6
  86. package/dist/types/Primitive/number/index.d.ts +5 -5
  87. package/dist/types/Primitive/object/Fabricator.d.ts +6 -6
  88. package/dist/types/Primitive/object/Registry.d.ts +4 -4
  89. package/dist/types/Primitive/object/Schema.d.ts +8 -8
  90. package/dist/types/Primitive/object/Types.d.ts +6 -6
  91. package/dist/types/Primitive/object/compute/Fabricator.d.ts +7 -7
  92. package/dist/types/Primitive/object/compute/Registry.d.ts +2 -2
  93. package/dist/types/Primitive/object/compute/Schema.d.ts +7 -7
  94. package/dist/types/Primitive/object/compute/Types.d.ts +3 -3
  95. package/dist/types/Primitive/object/compute/index.d.ts +5 -5
  96. package/dist/types/Primitive/object/index.d.ts +8 -8
  97. package/dist/types/Primitive/object/omit/Registry.d.ts +2 -2
  98. package/dist/types/Primitive/object/omit/index.d.ts +2 -2
  99. package/dist/types/Primitive/object/omittable/Fabricator.d.ts +6 -6
  100. package/dist/types/Primitive/object/omittable/Registry.d.ts +2 -2
  101. package/dist/types/Primitive/object/omittable/Schema.d.ts +6 -6
  102. package/dist/types/Primitive/object/omittable/Types.d.ts +5 -5
  103. package/dist/types/Primitive/object/omittable/index.d.ts +6 -6
  104. package/dist/types/Primitive/object/optional/Fabricator.d.ts +6 -6
  105. package/dist/types/Primitive/object/optional/Registry.d.ts +2 -2
  106. package/dist/types/Primitive/object/optional/Schema.d.ts +6 -6
  107. package/dist/types/Primitive/object/optional/Types.d.ts +5 -5
  108. package/dist/types/Primitive/object/optional/index.d.ts +6 -6
  109. package/dist/types/Primitive/object/pick/Registry.d.ts +2 -2
  110. package/dist/types/Primitive/object/pick/index.d.ts +2 -2
  111. package/dist/types/Primitive/opaque/Fabricator.d.ts +6 -6
  112. package/dist/types/Primitive/opaque/Registry.d.ts +2 -2
  113. package/dist/types/Primitive/opaque/Schema.d.ts +4 -4
  114. package/dist/types/Primitive/opaque/Types.d.ts +3 -3
  115. package/dist/types/Primitive/opaque/index.d.ts +5 -5
  116. package/dist/types/Primitive/record/Admits.d.ts +2 -2
  117. package/dist/types/Primitive/record/Fabricator.d.ts +6 -6
  118. package/dist/types/Primitive/record/Registry.d.ts +3 -3
  119. package/dist/types/Primitive/record/Schema.d.ts +5 -5
  120. package/dist/types/Primitive/record/Types.d.ts +6 -6
  121. package/dist/types/Primitive/record/index.d.ts +5 -5
  122. package/dist/types/Primitive/recursive/Fabricator.d.ts +6 -6
  123. package/dist/types/Primitive/recursive/Registry.d.ts +4 -4
  124. package/dist/types/Primitive/recursive/Schema.d.ts +4 -4
  125. package/dist/types/Primitive/recursive/Terminate.d.ts +1 -1
  126. package/dist/types/Primitive/recursive/Types.d.ts +3 -3
  127. package/dist/types/Primitive/recursive/index.d.ts +6 -6
  128. package/dist/types/Primitive/recursive/self/Fabricator.d.ts +5 -5
  129. package/dist/types/Primitive/recursive/self/Registry.d.ts +1 -1
  130. package/dist/types/Primitive/recursive/self/Schema.d.ts +4 -4
  131. package/dist/types/Primitive/recursive/self/Types.d.ts +2 -2
  132. package/dist/types/Primitive/recursive/self/index.d.ts +5 -5
  133. package/dist/types/Primitive/string/Admits.d.ts +1 -1
  134. package/dist/types/Primitive/string/Capacity.d.ts +1 -1
  135. package/dist/types/Primitive/string/Constants.d.ts +1 -1
  136. package/dist/types/Primitive/string/Fabricator.d.ts +6 -6
  137. package/dist/types/Primitive/string/Registry.d.ts +4 -4
  138. package/dist/types/Primitive/string/Schema.d.ts +5 -5
  139. package/dist/types/Primitive/string/Sources.d.ts +1 -1
  140. package/dist/types/Primitive/string/Types.d.ts +6 -6
  141. package/dist/types/Primitive/string/index.d.ts +6 -6
  142. package/dist/types/Primitive/symbol/Fabricator.d.ts +6 -6
  143. package/dist/types/Primitive/symbol/Registry.d.ts +2 -2
  144. package/dist/types/Primitive/symbol/Schema.d.ts +5 -5
  145. package/dist/types/Primitive/symbol/Types.d.ts +3 -3
  146. package/dist/types/Primitive/symbol/index.d.ts +5 -5
  147. package/dist/types/Primitive/tuple/Fabricator.d.ts +6 -6
  148. package/dist/types/Primitive/tuple/Registry.d.ts +2 -2
  149. package/dist/types/Primitive/tuple/Schema.d.ts +5 -5
  150. package/dist/types/Primitive/tuple/Types.d.ts +4 -4
  151. package/dist/types/Primitive/tuple/index.d.ts +5 -5
  152. package/dist/types/Primitive/undefinable/Fabricator.d.ts +6 -6
  153. package/dist/types/Primitive/undefinable/Registry.d.ts +2 -2
  154. package/dist/types/Primitive/undefinable/Schema.d.ts +6 -6
  155. package/dist/types/Primitive/undefinable/Types.d.ts +5 -5
  156. package/dist/types/Primitive/undefinable/index.d.ts +6 -6
  157. package/dist/types/Primitive/undefined/Fabricator.d.ts +6 -6
  158. package/dist/types/Primitive/undefined/Registry.d.ts +1 -1
  159. package/dist/types/Primitive/undefined/Schema.d.ts +4 -4
  160. package/dist/types/Primitive/undefined/Types.d.ts +2 -2
  161. package/dist/types/Primitive/undefined/index.d.ts +5 -5
  162. package/dist/types/Primitive/unique/Registry.d.ts +7 -7
  163. package/dist/types/Primitive/unique/index.d.ts +2 -2
  164. package/dist/types/Random/Generator/sfc32.d.ts +1 -1
  165. package/dist/types/Random/Types.d.ts +1 -1
  166. package/dist/types/Random/index.d.ts +1 -1
  167. package/dist/types/Schema/Core.d.ts +5 -5
  168. package/dist/types/Schema/Registry.d.ts +3 -3
  169. package/dist/types/Schema/Satisfies.d.ts +3 -3
  170. package/dist/types/Schema/Types.d.ts +5 -5
  171. package/dist/types/Types.d.ts +2 -2
  172. package/dist/types/Unique/Capacity.d.ts +1 -1
  173. package/dist/types/Unique/Distinct.d.ts +6 -6
  174. package/dist/types/Unique/Strategy.d.ts +5 -5
  175. package/dist/types/Utility/Core.d.ts +2 -2
  176. package/dist/types/Utility/DeepMerge.d.ts +2 -2
  177. package/dist/types/Utility/ShallowMerge.d.ts +2 -2
  178. package/dist/types/adapting.d.ts +3 -3
  179. package/dist/types/harnessing.d.ts +2 -2
  180. package/dist/types/index.d.ts +30 -30
  181. package/dist/types/internal.d.ts +16 -16
  182. package/package.json +2 -2
@@ -19,14 +19,14 @@
19
19
  *
20
20
  * @module
21
21
  */
22
- export { walk } from "./Adapter/Core";
22
+ export { walk } from "./Adapter/Core.ts";
23
23
  /**
24
24
  * `Adapter`/`Recurse` are what an adapter declares; `AdaptationsOf` is how it
25
25
  * reads what a Schema declared at the type level, keyed by its own `key`.
26
26
  */
27
- export type { Adaptations, AdaptationsOf, Adapter, Recurse, } from "./Adapter/Types";
27
+ export type { Adaptations, AdaptationsOf, Adapter, Recurse, } from "./Adapter/Types.ts";
28
28
  /**
29
29
  * What `[Adaptation]` holds at runtime — a per-adapter map of overrides, read
30
30
  * only by an adapter.
31
31
  */
32
- export { Adaptation } from "./Types";
32
+ export { Adaptation } from "./Types.ts";
@@ -28,7 +28,7 @@
28
28
  * caller owns `initialize(...)` (and in particular the suite-wide `clock`), and
29
29
  * this only wraps each test body in that instance's per-identity `wrap`.
30
30
  */
31
- export { integration } from "./Harnessing/Core";
31
+ export { integration } from "./Harnessing/Core.ts";
32
32
  /**
33
33
  * `Identity` is what identifies one registered test or suite; `Integration` is
34
34
  * the `{ name, provides, frame }` shape `integration(instance)` returns —
@@ -39,4 +39,4 @@ export { integration } from "./Harnessing/Core";
39
39
  * same thing plus `established`, for a provider; `FabricatorTestContext` is the
40
40
  * `{ fabricator }` slice of the test context this integration contributes.
41
41
  */
42
- export type { FabricatorTestContext, Frame, FrameArgs, Identity, Integration, Provider, ProviderArgs, Provides, Wrapper, } from "./Harnessing/Types";
42
+ export type { FabricatorTestContext, Frame, FrameArgs, Identity, Integration, Provider, ProviderArgs, Provides, Wrapper, } from "./Harnessing/Types.ts";
@@ -1,8 +1,8 @@
1
- import type { Limits } from "./Enumeration/Types";
2
- import type { Instance, Stack } from "./Instance/Types";
3
- import type { Algorithm, Salt } from "./Random/Types";
4
- import { registry } from "./Schema/Registry";
5
- import type { PlainObject } from "./Utility/Types";
1
+ import type { Limits } from "./Enumeration/Types.ts";
2
+ import type { Instance, Stack } from "./Instance/Types.ts";
3
+ import type { Algorithm, Salt } from "./Random/Types.ts";
4
+ import { registry } from "./Schema/Registry.ts";
5
+ import type { PlainObject } from "./Utility/Types.ts";
6
6
  export declare function initialize<const $Registry extends PlainObject = typeof registry>(config?: Partial<{
7
7
  /** The registry of type definers to use — `registry` itself. */
8
8
  types: $Registry;
@@ -71,18 +71,18 @@ export declare function initialize<const $Registry extends PlainObject = typeof
71
71
  */
72
72
  stack?: Stack;
73
73
  }>): Instance<$Registry>;
74
- export { Omitted } from "./Types";
74
+ export { Omitted } from "./Types.ts";
75
75
  /**
76
76
  * Tags a `Salt` — for `new Fabricator(schema, { salt })`, or `fork`'s own
77
77
  * `Overlay.salt` — as composing onto whatever base is in effect, rather than
78
78
  * replacing it outright.
79
79
  */
80
- export { layer } from "./Random";
80
+ export { layer } from "./Random/index.ts";
81
81
  /**
82
82
  * `layer(...)`'s return type, so a caller building one programmatically can
83
83
  * name it — the same rationale as the existing `Salt` export.
84
84
  */
85
- export type { Layered } from "./Random/Types";
85
+ export type { Layered } from "./Random/Types.ts";
86
86
  /**
87
87
  * Every failure this library raises is an instance of this class — see
88
88
  * `src/Error/index.ts` for the full hierarchy. Every subclass is a member of
@@ -90,28 +90,28 @@ export type { Layered } from "./Random/Types";
90
90
  * them: `e instanceof FabricatorError.InvalidOverrideValueError` works, and
91
91
  * `.name` names the same failure.
92
92
  */
93
- export { FabricatorError } from "./Error";
93
+ export { FabricatorError } from "./Error/index.ts";
94
94
  /**
95
95
  * The default registry of type definers, exported so it can be extended via
96
96
  * `registry.extend(({ T }) => ({ ... }))` before being passed to `initialize({
97
97
  * types })`.
98
98
  */
99
- export { registry } from "./Schema/Registry";
99
+ export { registry } from "./Schema/Registry.ts";
100
100
  /**
101
101
  * Canonical `{ value, exclusive }` endpoint stored on `whereby` min/max, plus
102
102
  * the call-site union that still accepts a scalar (inclusive). Exported so a
103
103
  * named `.whereby(...)` argument or an `.adapt` producer reading `meta` can
104
104
  * type it — the same rationale as `Stream`.
105
105
  */
106
- export { effectiveDiscrete, toBound } from "./Bound";
107
- export type { Bound, InputBound } from "./Bound";
106
+ export { effectiveDiscrete, toBound } from "./Bound.ts";
107
+ export type { Bound, InputBound } from "./Bound.ts";
108
108
  /**
109
109
  * What `.admits(...)` accepts for a group of ends, and how `[Meta].admits`
110
110
  * stores it (an absent end states no limit). Exported so an argument built
111
111
  * programmatically, or an `.adapt` producer reading `meta.admits`, can be typed
112
112
  * — the same rationale as `Bound`.
113
113
  */
114
- export type { AdmittedEnds, InputAdmittedEnds } from "./Bound";
114
+ export type { AdmittedEnds, InputAdmittedEnds } from "./Bound.ts";
115
115
  /**
116
116
  * The `length` shapes `T.string`/`T.array`'s `.whereby(...)` accept and store,
117
117
  * and the `distribution` every range-bearing `whereby` takes. Exported so a
@@ -121,8 +121,8 @@ export type { AdmittedEnds, InputAdmittedEnds } from "./Bound";
121
121
  * object (`{ kind: "skew", exponent: 4 }`), and the type's namespace members
122
122
  * (`Distribution.Normal`, …) name each variant.
123
123
  */
124
- export type { Distribution, Range } from "./Distribution";
125
- export type { InputLength, Length } from "./Bound";
124
+ export type { Distribution, Range } from "./Distribution/index.ts";
125
+ export type { InputLength, Length } from "./Bound.ts";
126
126
  /**
127
127
  * `T.string`'s `composition` vocabulary: the class-weighting and `[weight,
128
128
  * source]` forms, and the sources the second form draws from. `classes` holds
@@ -130,14 +130,14 @@ export type { InputLength, Length } from "./Bound";
130
130
  * class with an arbitrary range (`[[3, classes.lowercase], [1, unicode.bmp]]`);
131
131
  * `unicode` holds codespace presets and `range(from, to)`.
132
132
  */
133
- export type { CharacterClass, CharacterSource, CodepointRange, Composition, } from "./Primitive/string/Types";
134
- export { classes, unicode } from "./Primitive/string/Constants";
133
+ export type { CharacterClass, CharacterSource, CodepointRange, Composition, } from "./Primitive/string/Types.ts";
134
+ export { classes, unicode } from "./Primitive/string/Constants.ts";
135
135
  /**
136
136
  * Public because it is the type of `ProduceContext`'s `random` member — the
137
137
  * seeded stream every kind's `.as(produce)` and `T.opaque`'s producer are
138
138
  * handed — so a caller writing either as a named function can name it.
139
139
  */
140
- export type { Stream } from "./Random/Types";
140
+ export type { Stream } from "./Random/Types.ts";
141
141
  /**
142
142
  * Uniform pick and Fisher–Yates shuffle over a caller-held list, each taking
143
143
  * the `Stream` a producer is already handed. Exported so a caller writing
@@ -146,14 +146,14 @@ export type { Stream } from "./Random/Types";
146
146
  * `T.enum` when the pick can be a schema: it is enumerable and path-keyed;
147
147
  * these helpers are for the cases that cannot.
148
148
  */
149
- export { sample, shuffle } from "./Distribution";
149
+ export { sample, shuffle } from "./Distribution/index.ts";
150
150
  /**
151
151
  * What every kind's `.as(produce)` producer is called with — a single curated
152
152
  * object rather than a positional argument list, so a caller writing the
153
153
  * producer as a named function can name its parameter. `T.opaque`'s producer
154
154
  * takes the same shape.
155
155
  */
156
- export type { ProduceContext } from "./Random/Types";
156
+ export type { ProduceContext } from "./Random/Types.ts";
157
157
  /**
158
158
  * What every kind's `.adapt(adapter, produce)` producer is called with — `{
159
159
  * schema, meta }` — the same rationale as `Stream`/`ProduceContext` above: a
@@ -165,24 +165,24 @@ export type { ProduceContext } from "./Random/Types";
165
165
  * `AdaptationsOf`, `Recurse`) is exported from `@ghostry/fabricator/adapting`
166
166
  * instead — surface for implementing an adapter, not for calling `.adapt()`.
167
167
  */
168
- export type { Adapting } from "./Adapter/Types";
168
+ export type { Adapting } from "./Adapter/Types.ts";
169
169
  /**
170
170
  * The shape `initialize({ salt })` and `new Fabricator(schema, { salt })` both
171
171
  * accept — a single string, or several — so a caller building one
172
172
  * programmatically (rather than as an inline literal) can name the type.
173
173
  */
174
- export type { Salt } from "./Random/Types";
174
+ export type { Salt } from "./Random/Types.ts";
175
175
  /**
176
176
  * The shape that `initialize({ algorithm })` accepts — a seed in, a `[0, 1)`
177
177
  * generator out.
178
178
  */
179
- export type { Algorithm } from "./Random/Types";
179
+ export type { Algorithm } from "./Random/Types.ts";
180
180
  /**
181
181
  * Reads the value type a Schema produces, via its phantom `[Produces]` marker —
182
182
  * before it is built, which is what a helper accepting a Schema needs — or the
183
183
  * value type a built Fabricator produces, off its `fabricate` signature.
184
184
  */
185
- export type { Fabricated } from "./Schema/Types";
185
+ export type { Fabricated } from "./Schema/Types.ts";
186
186
  /**
187
187
  * Check that a Schema or built Fabricator produces a value assignable to a
188
188
  * supplied type — `.satisfies<T>()` on every kind's Schema is the main form;
@@ -190,13 +190,13 @@ export type { Fabricated } from "./Schema/Types";
190
190
  * caller does not want to edit. `SatisfiedBy` is the type-only equivalent. See
191
191
  * `Schema/Satisfies.ts`.
192
192
  */
193
- export { satisfies } from "./Schema/Satisfies";
194
- export type { SatisfiedBy } from "./Schema/Satisfies";
193
+ export { satisfies } from "./Schema/Satisfies.ts";
194
+ export type { SatisfiedBy } from "./Schema/Satisfies.ts";
195
195
  /**
196
196
  * `fabricator.trace`'s type — otherwise unnameable by a caller wanting to hold
197
197
  * onto one, the same reason `Stream` is exported above.
198
198
  */
199
- export type { Trace } from "./Random/Types";
199
+ export type { Trace } from "./Random/Types.ts";
200
200
  /**
201
201
  * `fork`/`wrap`'s own config shapes, so a caller building an overlay
202
202
  * programmatically (rather than as an inline literal) can name them — the same
@@ -211,10 +211,10 @@ export type { Trace } from "./Random/Types";
211
211
  * and the ordinary "same lineage?" question is `a.root === b.root` rather than
212
212
  * anything a caller needs to name.
213
213
  */
214
- export type { Ancestry, Config, Context, Overlay, Stack, } from "./Instance/Types";
214
+ export type { Ancestry, Config, Context, Overlay, Stack, } from "./Instance/Types.ts";
215
215
  /**
216
216
  * `capacity`'s type, and what `combinatorial`/`coverage` return, so a caller
217
217
  * holding either can name it.
218
218
  */
219
- export type { Capacity } from "./Unique/Capacity";
220
- export type { Enumeration } from "./Enumeration/Types";
219
+ export type { Capacity } from "./Unique/Capacity.ts";
220
+ export type { Enumeration } from "./Enumeration/Types.ts";
@@ -19,7 +19,7 @@
19
19
  * (re-exported here as `Primitive`), or no adapter can reach that kind's `Core`
20
20
  * type.
21
21
  */
22
- export type { Fabrication, NaiveFabricator } from "./Fabricator/Types";
22
+ export type { Fabrication, NaiveFabricator } from "./Fabricator/Types.ts";
23
23
  /**
24
24
  * Schema -> the Fabricator type `construct()` produces for it, dispatching per
25
25
  * kind. `Constructor` already names this as its own construct signature's
@@ -34,7 +34,7 @@ export type { Fabrication, NaiveFabricator } from "./Fabricator/Types";
34
34
  * type is exactly this. Without it, an integration is pushed into hand-writing
35
35
  * a per-kind stand-in — a second copy of this mapping, susceptible to drift.
36
36
  */
37
- export type { AsFabricator } from "./Fabricator/Types";
37
+ export type { AsFabricator } from "./Fabricator/Types.ts";
38
38
  /**
39
39
  * `Produced` travels with `Produces`: `[Produces]` holds a Schema's value type
40
40
  * boxed, so anything outside this package that matches or infers through the
@@ -42,8 +42,8 @@ export type { AsFabricator } from "./Fabricator/Types";
42
42
  * `Types.ts` for why an unboxed `{ readonly [Produces]?: $T }` cannot be read
43
43
  * exactly.
44
44
  */
45
- export { Children, Kind, Meta, Produces, type Buildable, type Produced, } from "./Types";
46
- export { isArray, isPlainObject } from "./Utility/Core";
45
+ export { Children, Kind, Meta, Produces, type Buildable, type Produced, } from "./Types.ts";
46
+ export { isArray, isPlainObject } from "./Utility/Core.ts";
47
47
  /**
48
48
  * The runtime counterparts of `Buildable` and `AnySchema`, for an integration
49
49
  * that takes one from an untyped caller. `@ghostry/extern`'s fabricator
@@ -51,42 +51,42 @@ export { isArray, isPlainObject } from "./Utility/Core";
51
51
  * an identity, since a block could either continue its streams or build afresh
52
52
  * from its schema.
53
53
  */
54
- export { isBuildable, isSchema } from "./Schema/Core";
55
- export { toKeyer, type Keyer } from "./Unique/Key";
56
- export type * as Primitive from "./Primitive/namespace";
54
+ export { isBuildable, isSchema } from "./Schema/Core.ts";
55
+ export { toKeyer, type Keyer } from "./Unique/Key.ts";
56
+ export type * as Primitive from "./Primitive/namespace.ts";
57
57
  /**
58
58
  * `Schema/Types.ts`'s own value-type resolution, needed by tests asserting
59
59
  * `Fabricated<...>` directly rather than through a built Fabricator's
60
60
  * `Fabrication<...>`.
61
61
  */
62
- export type { Fabricated } from "./Schema/Types";
62
+ export type { Fabricated } from "./Schema/Types.ts";
63
63
  /**
64
64
  * `Constructor` is `Instance.Fabricator`'s own type — public in effect (every
65
65
  * `initialize()` caller receives one), just never named directly by the `.`
66
66
  * export, which only ever describes it inline.
67
67
  */
68
- export type { Constructor } from "./Fabricator/Constructor";
68
+ export type { Constructor } from "./Fabricator/Constructor.ts";
69
69
  /**
70
70
  * The enumeration planner's own shapes — `combinatorial`/`coverage` (the `.`
71
71
  * export's public entry points) are built on `plan`/`resolve`, which a test
72
72
  * asserting `axisFor`'s per-kind width/strategy decisions needs directly.
73
73
  */
74
- export { plan, resolve } from "./Enumeration/Plan";
75
- export type { Axis, Enumerable, Pin, Resolvable } from "./Enumeration/Types";
74
+ export { plan, resolve } from "./Enumeration/Plan.ts";
75
+ export type { Axis, Enumerable, Pin, Resolvable } from "./Enumeration/Types.ts";
76
76
  /**
77
77
  * The randomness layer underneath `initialize({ clock, salt, algorithm })` and
78
78
  * a Fabricator's `.trace` — needed by tests exercising stream construction
79
79
  * directly, beneath the level `initialize()` itself exposes.
80
80
  */
81
- export { defaultAlgorithm, encode, randomSalt, toRandomSource, toStream, toStreamFromTrace, } from "./Random";
82
- export type { Algorithm, ConstructionPins, ConstructionTrace, ConstructorOptions, Salt, Trace, } from "./Random/Types";
81
+ export { defaultAlgorithm, encode, randomSalt, toRandomSource, toStream, toStreamFromTrace, } from "./Random/index.ts";
82
+ export type { Algorithm, ConstructionPins, ConstructionTrace, ConstructorOptions, Salt, Trace, } from "./Random/Types.ts";
83
83
  /**
84
84
  * The shared index-selection draw every weighted kind (`enum`, `choice`,
85
85
  * `boolean`, the presence wrappers) reaches through construction — exported so
86
86
  * a test can measure its distribution against a raw stream, without a kind's
87
87
  * registry guards or `.fabricate()` in between.
88
88
  */
89
- export { weighted } from "./Distribution";
89
+ export { weighted } from "./Distribution/index.ts";
90
90
  /**
91
91
  * The normal CDF the `normal` distribution's truncation is computed with. The
92
92
  * docs site's distribution explorer draws each variant's exact density, and a
@@ -99,7 +99,7 @@ export { weighted } from "./Distribution";
99
99
  * against the exact curve fabrication will draw from, rather than against a
100
100
  * second approximation that could disagree with it in the tails.
101
101
  */
102
- export { normalCdf, normalInv } from "./Distribution";
102
+ export { normalCdf, normalInv } from "./Distribution/index.ts";
103
103
  /**
104
104
  * The synchronous ambient carrier. `#stack` (`package.json`) selects it only
105
105
  * where there is no `node:async_hooks` — in practice a browser bundle — so on
@@ -110,4 +110,4 @@ export { normalCdf, normalInv } from "./Distribution";
110
110
  * serviceable argument for `initialize({ stack })` for anyone who wants the old
111
111
  * semantics back deliberately.
112
112
  */
113
- export { toStack as toSynchronousStack } from "./Instance/Stack/Sync";
113
+ export { toStack as toSynchronousStack } from "./Instance/Stack/Sync.ts";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ghostry/fabricator",
3
- "version": "0.0.14",
3
+ "version": "0.0.15",
4
4
  "license": "MIT",
5
5
  "description": "Fabricate typed data from composable schemas.",
6
6
  "keywords": [
@@ -65,7 +65,7 @@
65
65
  "provenance": true
66
66
  },
67
67
  "devDependencies": {
68
- "@ghostry/harness": "^0.0.6"
68
+ "@ghostry/harness": "^0.0.7"
69
69
  },
70
70
  "scripts": {
71
71
  "build:reset": "rm -rf ./dist",