@fncts/test 0.0.12 → 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 (260) hide show
  1. package/TestSpec.d.ts +1 -1
  2. package/_cjs/api.cjs +9 -9
  3. package/_cjs/api.cjs.map +1 -1
  4. package/_cjs/control/Annotations/api.cjs +1 -1
  5. package/_cjs/control/Annotations/api.cjs.map +1 -1
  6. package/_cjs/control/Annotations/live.cjs +4 -4
  7. package/_cjs/control/Annotations/live.cjs.map +1 -1
  8. package/_cjs/control/Assertion/api.cjs +2 -0
  9. package/_cjs/control/Assertion/api.cjs.map +1 -1
  10. package/_cjs/control/AssertionIO/api.cjs +2 -0
  11. package/_cjs/control/AssertionIO/api.cjs.map +1 -1
  12. package/_cjs/control/DefaultTestReporter/render.cjs +2 -0
  13. package/_cjs/control/DefaultTestReporter/render.cjs.map +1 -1
  14. package/_cjs/control/FreeBooleanAlgebraIO/api.cjs +2 -2
  15. package/_cjs/control/FreeBooleanAlgebraIO/api.cjs.map +1 -1
  16. package/_cjs/control/Gen/api/char.cjs.map +1 -1
  17. package/_cjs/control/Gen/api/conc.cjs +4 -3
  18. package/_cjs/control/Gen/api/conc.cjs.map +1 -1
  19. package/_cjs/control/Gen/api/double.cjs +4 -4
  20. package/_cjs/control/Gen/api/double.cjs.map +1 -1
  21. package/_cjs/control/Gen/api/float.cjs +1 -1
  22. package/_cjs/control/Gen/api/float.cjs.map +1 -1
  23. package/_cjs/control/Gen/api/struct.cjs +1 -1
  24. package/_cjs/control/Gen/api/struct.cjs.map +1 -1
  25. package/_cjs/control/Gen/api.cjs +11 -11
  26. package/_cjs/control/Gen/api.cjs.map +1 -1
  27. package/_cjs/control/Gen/definition.cjs.map +1 -1
  28. package/_cjs/control/Live/definition.cjs +4 -4
  29. package/_cjs/control/Live/definition.cjs.map +1 -1
  30. package/_cjs/control/RunnableSpec.cjs +10 -12
  31. package/_cjs/control/RunnableSpec.cjs.map +1 -1
  32. package/_cjs/control/Sample/api.cjs +17 -17
  33. package/_cjs/control/Sample/api.cjs.map +1 -1
  34. package/_cjs/control/Sized/api.cjs +1 -1
  35. package/_cjs/control/Sized/api.cjs.map +1 -1
  36. package/_cjs/control/Sized/live.cjs +3 -3
  37. package/_cjs/control/Sized/live.cjs.map +1 -1
  38. package/_cjs/control/Spec/api.cjs +7 -7
  39. package/_cjs/control/Spec/api.cjs.map +1 -1
  40. package/_cjs/control/Spec/definition.cjs.map +1 -1
  41. package/_cjs/control/TestAspect/api.cjs +7 -7
  42. package/_cjs/control/TestAspect/api.cjs.map +1 -1
  43. package/_cjs/control/TestClock/api.cjs +14 -22
  44. package/_cjs/control/TestClock/api.cjs.map +1 -1
  45. package/_cjs/control/TestClock/definition.cjs +16 -16
  46. package/_cjs/control/TestClock/definition.cjs.map +1 -1
  47. package/_cjs/control/TestConsole/api.cjs +12 -15
  48. package/_cjs/control/TestConsole/api.cjs.map +1 -1
  49. package/_cjs/control/TestConsole/definition.cjs +11 -11
  50. package/_cjs/control/TestConsole/definition.cjs.map +1 -1
  51. package/_cjs/control/TestEnvironment.cjs +3 -2
  52. package/_cjs/control/TestEnvironment.cjs.map +1 -1
  53. package/_cjs/control/TestExecutor.cjs +6 -6
  54. package/_cjs/control/TestExecutor.cjs.map +1 -1
  55. package/_cjs/control/TestLogger.cjs +1 -1
  56. package/_cjs/control/TestLogger.cjs.map +1 -1
  57. package/_cjs/control/TestRandom/api.cjs +10 -18
  58. package/_cjs/control/TestRandom/api.cjs.map +1 -1
  59. package/_cjs/control/TestRandom/definition.cjs +17 -17
  60. package/_cjs/control/TestRandom/definition.cjs.map +1 -1
  61. package/_cjs/control/TestRunner.cjs +1 -1
  62. package/_cjs/control/TestRunner.cjs.map +1 -1
  63. package/_cjs/control.cjs +6 -0
  64. package/_cjs/control.cjs.map +1 -0
  65. package/_cjs/data/LogLine/Line.cjs +2 -0
  66. package/_cjs/data/LogLine/Line.cjs.map +1 -1
  67. package/_cjs/data/LogLine/Message.cjs +4 -3
  68. package/_cjs/data/LogLine/Message.cjs.map +1 -1
  69. package/_cjs/data/TestConfig.cjs +7 -5
  70. package/_cjs/data/TestConfig.cjs.map +1 -1
  71. package/_cjs/data.cjs +6 -0
  72. package/_cjs/data.cjs.map +1 -0
  73. package/_cjs/global.cjs +6 -0
  74. package/_cjs/global.cjs.map +1 -0
  75. package/_cjs/index.cjs +6 -0
  76. package/_cjs/index.cjs.map +1 -0
  77. package/_cjs/util/math.cjs +3 -3
  78. package/_cjs/util/math.cjs.map +1 -1
  79. package/_cjs/util.cjs +6 -0
  80. package/_cjs/util.cjs.map +1 -0
  81. package/_mjs/api.mjs +9 -9
  82. package/_mjs/api.mjs.map +1 -1
  83. package/_mjs/control/Annotations/api.mjs +1 -1
  84. package/_mjs/control/Annotations/api.mjs.map +1 -1
  85. package/_mjs/control/Annotations/live.mjs +4 -4
  86. package/_mjs/control/Annotations/live.mjs.map +1 -1
  87. package/_mjs/control/Assertion/api.mjs +1 -0
  88. package/_mjs/control/Assertion/api.mjs.map +1 -1
  89. package/_mjs/control/AssertionIO/api.mjs +1 -0
  90. package/_mjs/control/AssertionIO/api.mjs.map +1 -1
  91. package/_mjs/control/DefaultTestReporter/render.mjs +1 -0
  92. package/_mjs/control/DefaultTestReporter/render.mjs.map +1 -1
  93. package/_mjs/control/FreeBooleanAlgebraIO/api.mjs +2 -2
  94. package/_mjs/control/FreeBooleanAlgebraIO/api.mjs.map +1 -1
  95. package/_mjs/control/Gen/api/char.mjs.map +1 -1
  96. package/_mjs/control/Gen/api/conc.mjs +1 -0
  97. package/_mjs/control/Gen/api/conc.mjs.map +1 -1
  98. package/_mjs/control/Gen/api/double.mjs +4 -4
  99. package/_mjs/control/Gen/api/double.mjs.map +1 -1
  100. package/_mjs/control/Gen/api/float.mjs +1 -1
  101. package/_mjs/control/Gen/api/float.mjs.map +1 -1
  102. package/_mjs/control/Gen/api/struct.mjs +1 -1
  103. package/_mjs/control/Gen/api/struct.mjs.map +1 -1
  104. package/_mjs/control/Gen/api.mjs +11 -11
  105. package/_mjs/control/Gen/api.mjs.map +1 -1
  106. package/_mjs/control/Gen/definition.mjs.map +1 -1
  107. package/_mjs/control/Live/definition.mjs +4 -4
  108. package/_mjs/control/Live/definition.mjs.map +1 -1
  109. package/_mjs/control/RunnableSpec.mjs +10 -12
  110. package/_mjs/control/RunnableSpec.mjs.map +1 -1
  111. package/_mjs/control/Sample/api.mjs +15 -15
  112. package/_mjs/control/Sample/api.mjs.map +1 -1
  113. package/_mjs/control/Sized/api.mjs +1 -1
  114. package/_mjs/control/Sized/api.mjs.map +1 -1
  115. package/_mjs/control/Sized/live.mjs +3 -3
  116. package/_mjs/control/Sized/live.mjs.map +1 -1
  117. package/_mjs/control/Spec/api.mjs +7 -7
  118. package/_mjs/control/Spec/api.mjs.map +1 -1
  119. package/_mjs/control/Spec/definition.mjs.map +1 -1
  120. package/_mjs/control/TestAspect/api.mjs +7 -7
  121. package/_mjs/control/TestAspect/api.mjs.map +1 -1
  122. package/_mjs/control/TestClock/api.mjs +13 -21
  123. package/_mjs/control/TestClock/api.mjs.map +1 -1
  124. package/_mjs/control/TestClock/definition.mjs +16 -16
  125. package/_mjs/control/TestClock/definition.mjs.map +1 -1
  126. package/_mjs/control/TestConsole/api.mjs +10 -13
  127. package/_mjs/control/TestConsole/api.mjs.map +1 -1
  128. package/_mjs/control/TestConsole/definition.mjs +11 -11
  129. package/_mjs/control/TestConsole/definition.mjs.map +1 -1
  130. package/_mjs/control/TestEnvironment.mjs +3 -2
  131. package/_mjs/control/TestEnvironment.mjs.map +1 -1
  132. package/_mjs/control/TestExecutor.mjs +6 -6
  133. package/_mjs/control/TestExecutor.mjs.map +1 -1
  134. package/_mjs/control/TestLogger.mjs +1 -1
  135. package/_mjs/control/TestLogger.mjs.map +1 -1
  136. package/_mjs/control/TestRandom/api.mjs +10 -18
  137. package/_mjs/control/TestRandom/api.mjs.map +1 -1
  138. package/_mjs/control/TestRandom/definition.mjs +17 -17
  139. package/_mjs/control/TestRandom/definition.mjs.map +1 -1
  140. package/_mjs/control/TestRunner.mjs +1 -1
  141. package/_mjs/control/TestRunner.mjs.map +1 -1
  142. package/_mjs/control.mjs +2 -0
  143. package/_mjs/control.mjs.map +1 -0
  144. package/_mjs/data/LogLine/Line.mjs +1 -0
  145. package/_mjs/data/LogLine/Line.mjs.map +1 -1
  146. package/_mjs/data/LogLine/Message.mjs +1 -0
  147. package/_mjs/data/LogLine/Message.mjs.map +1 -1
  148. package/_mjs/data/TestConfig.mjs +6 -5
  149. package/_mjs/data/TestConfig.mjs.map +1 -1
  150. package/_mjs/data.mjs +2 -0
  151. package/_mjs/data.mjs.map +1 -0
  152. package/_mjs/global.mjs +2 -0
  153. package/_mjs/global.mjs.map +1 -0
  154. package/_mjs/index.mjs +2 -0
  155. package/_mjs/index.mjs.map +1 -0
  156. package/_mjs/util/math.mjs +3 -3
  157. package/_mjs/util/math.mjs.map +1 -1
  158. package/_mjs/util.mjs +2 -0
  159. package/_mjs/util.mjs.map +1 -0
  160. package/_src/api.ts +9 -9
  161. package/_src/control/AbstractRunnableSpec.ts +2 -2
  162. package/_src/control/Annotations/api.ts +4 -4
  163. package/_src/control/AssertionIO/definition.ts +1 -1
  164. package/_src/control/DefaultTestReporter/render.ts +1 -1
  165. package/_src/control/FreeBooleanAlgebraIO/api.ts +4 -4
  166. package/_src/control/Gen/api/array.ts +2 -2
  167. package/_src/control/Gen/api/char.ts +10 -10
  168. package/_src/control/Gen/api/conc.ts +2 -2
  169. package/_src/control/Gen/api/double.ts +2 -2
  170. package/_src/control/Gen/api/float.ts +1 -1
  171. package/_src/control/Gen/api/string.ts +8 -8
  172. package/_src/control/Gen/api.ts +20 -20
  173. package/_src/control/Gen/definition.ts +2 -0
  174. package/_src/control/Live/definition.ts +7 -7
  175. package/_src/control/RunnableSpec.ts +4 -4
  176. package/_src/control/Sample/api.ts +12 -12
  177. package/_src/control/Sized/api.ts +2 -2
  178. package/_src/control/Sized/live.ts +1 -1
  179. package/_src/control/Spec/api.ts +21 -24
  180. package/_src/control/Spec/definition.ts +3 -3
  181. package/_src/control/TestAspect/api.ts +12 -14
  182. package/_src/control/TestAspect/definition.ts +1 -1
  183. package/_src/control/TestClock/api.ts +10 -10
  184. package/_src/control/TestClock/definition.ts +3 -3
  185. package/_src/control/TestConsole/api.ts +5 -5
  186. package/_src/control/TestEnvironment.ts +11 -10
  187. package/_src/control/TestExecutor.ts +4 -6
  188. package/_src/control/TestLogger.ts +2 -2
  189. package/_src/control/TestRandom/api.ts +10 -10
  190. package/_src/control/TestRunner.ts +3 -3
  191. package/_src/control.ts +26 -0
  192. package/_src/data/TestConfig.ts +1 -1
  193. package/_src/data.ts +21 -0
  194. package/_src/global.ts +8 -0
  195. package/_src/index.ts +8 -0
  196. package/_src/util/math.ts +3 -3
  197. package/_src/util.ts +3 -0
  198. package/api.d.ts +7 -8
  199. package/control/AbstractRunnableSpec.d.ts +3 -4
  200. package/control/Annotations/api.d.ts +7 -8
  201. package/control/Annotations/definition.d.ts +3 -3
  202. package/control/Annotations/live.d.ts +8 -8
  203. package/control/Assertion/api.d.ts +2 -2
  204. package/control/Assertion/definition.d.ts +1 -1
  205. package/control/AssertionIO/definition.d.ts +1 -1
  206. package/control/DefaultRunnableSpec.d.ts +2 -2
  207. package/control/DefaultTestReporter/render.d.ts +5 -6
  208. package/control/FreeBooleanAlgebraIO/api.d.ts +5 -5
  209. package/control/FreeBooleanAlgebraIO/definition.d.ts +1 -1
  210. package/control/Gen/api/array.d.ts +2 -3
  211. package/control/Gen/api/char.d.ts +9 -9
  212. package/control/Gen/api/conc.d.ts +2 -3
  213. package/control/Gen/api/double.d.ts +2 -2
  214. package/control/Gen/api/float.d.ts +1 -1
  215. package/control/Gen/api/string.d.ts +8 -9
  216. package/control/Gen/api.d.ts +22 -23
  217. package/control/Gen/definition.d.ts +4 -2
  218. package/control/Live/definition.d.ts +5 -7
  219. package/control/RunnableSpec.d.ts +2 -3
  220. package/control/Sample/api.d.ts +13 -13
  221. package/control/Sample/definition.d.ts +2 -2
  222. package/control/Sized/api.d.ts +3 -4
  223. package/control/Sized/definition.d.ts +1 -1
  224. package/control/Sized/live.d.ts +2 -3
  225. package/control/Spec/api.d.ts +17 -19
  226. package/control/Spec/definition.d.ts +6 -7
  227. package/control/Test.d.ts +1 -1
  228. package/control/TestAnnotationRenderer/definition.d.ts +2 -2
  229. package/control/TestAspect/api.d.ts +9 -10
  230. package/control/TestAspect/definition.d.ts +1 -1
  231. package/control/TestClock/api.d.ts +4 -5
  232. package/control/TestClock/definition.d.ts +12 -12
  233. package/control/TestConsole/api.d.ts +2 -3
  234. package/control/TestConsole/definition.d.ts +7 -7
  235. package/control/TestEnvironment.d.ts +4 -5
  236. package/control/TestExecutor.d.ts +3 -4
  237. package/control/TestLogger.d.ts +3 -4
  238. package/control/TestRandom/api.d.ts +10 -10
  239. package/control/TestRandom/definition.d.ts +5 -5
  240. package/control/TestRenderer/ConsoleRenderer.d.ts +1 -1
  241. package/control/TestRunner.d.ts +5 -6
  242. package/control.d.ts +24 -0
  243. package/data/AssertionResult.d.ts +1 -1
  244. package/data/AssertionValue/api.d.ts +1 -1
  245. package/data/AssertionValue/definition.d.ts +1 -1
  246. package/data/ExecutionResult.d.ts +1 -1
  247. package/data/FailureDetails.d.ts +2 -2
  248. package/data/FreeBooleanAlgebra/api.d.ts +2 -2
  249. package/data/TestAnnotation/api.d.ts +2 -2
  250. package/data/TestAnnotation/definition.d.ts +3 -2
  251. package/data/TestAnnotationMap.d.ts +1 -1
  252. package/data/TestArgs/definition.d.ts +1 -1
  253. package/data/TestConfig.d.ts +5 -6
  254. package/data/TestFailure.d.ts +1 -1
  255. package/data.d.ts +19 -0
  256. package/global.d.ts +9 -0
  257. package/index.d.ts +6 -0
  258. package/package.json +8 -4
  259. package/util/math.d.ts +4 -4
  260. package/util.d.ts +1 -0
@@ -1,8 +1,7 @@
1
- import { Has } from "@fncts/base/typeclass";
2
- import { IO } from "@fncts/io/IO";
1
+ import { IO } from "@fncts/io/IO/definition";
3
2
  import { Schedule } from "@fncts/io/Schedule/definition";
4
- import { Environment } from "@fncts/base/data/Environment";
5
- import { Duration } from "@fncts/base/data/Duration";
3
+ import { Environment } from "@fncts/base/data/Environment/definition";
4
+ import { Duration } from "@fncts/base/data/Duration/definition";
6
5
  import { Vector } from "@fncts/base/collection/immutable/Vector";
7
6
  import type { TestAspect } from "@fncts/test/control/TestAspect/definition";
8
7
  import type { TestSuccess } from "@fncts/test/data/TestSuccess";
@@ -12,13 +11,13 @@ import { TestFailure } from "@fncts/test/data/TestFailure";
12
11
  export declare type TestAspectAtLeastR<R> = TestAspect<R, never>;
13
12
  export declare type TestAspectPoly = TestAspect<unknown, never>;
14
13
  export declare const id: TestAspectPoly;
15
- export declare const ignore: TestAspectAtLeastR<Has<Annotations>>;
16
- export declare function perTest<R, E>(f: <R1, E1>(test: IO<R1, TestFailure<E1>, TestSuccess>) => IO<R & R1, TestFailure<E | E1>, TestSuccess>): TestAspect<R, E>;
14
+ export declare const ignore: TestAspectAtLeastR<Annotations>;
15
+ export declare function perTest<R, E>(f: <R1, E1>(test: IO<R1, TestFailure<E1>, TestSuccess>) => IO<R | R1, TestFailure<E | E1>, TestSuccess>): TestAspect<R, E>;
17
16
  export declare function after<R, E, A>(effect: IO<R, E, A>): TestAspect<R, E>;
18
- export declare function around<R, E, A, R1>(before: IO<R, E, A>, after: (a: A) => IO<R1, never, any>): TestAspect<R & R1, E>;
19
- export declare function aroundAll<R, E, A, R1>(before: IO<R, E, A>, after: (a: A) => IO<R1, never, any>): TestAspect<R & R1, E>;
17
+ export declare function around<R, E, A, R1>(before: IO<R, E, A>, after: (a: A) => IO<R1, never, any>): TestAspect<R | R1, E>;
18
+ export declare function aroundAll<R, E, A, R1>(before: IO<R, E, A>, after: (a: A) => IO<R1, never, any>): TestAspect<R | R1, E>;
20
19
  export declare function before<R0>(effect: IO<R0, never, any>): TestAspect<R0, never>;
21
20
  export declare function beforeAll<R0, E0>(effect: IO<R0, E0, any>): TestAspect<R0, E0>;
22
21
  export declare const eventually: TestAspect<unknown, unknown>;
23
- export declare function repeat<R0>(schedule: Schedule<R0, TestSuccess, any>): TestAspect<R0 & Has<Annotations>, never>;
24
- export declare function timeoutWarning(duration: Duration): TestAspect<Has<Live>, any>;
22
+ export declare function repeat<R0>(schedule: Schedule<R0, TestSuccess, any>): TestAspect<R0 & Annotations, never>;
23
+ export declare function timeoutWarning(duration: Duration): TestAspect<Live, any>;
@@ -1,2 +1,2 @@
1
1
  import type { Spec } from "@fncts/test/control/Spec";
2
- export declare type TestAspect<R, E> = <R1, E1>(spec: Spec<R1, E1>) => Spec<R & R1, E | E1>;
2
+ export declare type TestAspect<R, E> = <R1, E1>(spec: Spec<R1, E1>) => Spec<R | R1, E | E1>;
@@ -1,6 +1,5 @@
1
1
  import { Layer } from "@fncts/io/Layer";
2
- import { Has } from "@fncts/base/typeclass";
3
- import { IO } from "@fncts/io/IO";
2
+ import { IO } from "@fncts/io/IO/definition";
4
3
  import { Annotations } from "@fncts/test/control/Annotations";
5
4
  import { Live } from "@fncts/test/control/Live";
6
5
  import { Data, TestClock } from "@fncts/test/control/TestClock/definition";
@@ -8,14 +7,14 @@ import { Data, TestClock } from "@fncts/test/control/TestClock/definition";
8
7
  * @tsplus static fncts.test.TestClockOps make
9
8
  * @tsplus location "@fncts/test/control/TestClock/api"
10
9
  */
11
- export declare function make(data: Data): Layer<Has<Live> & Has<Annotations>, never, Has<TestClock>>;
10
+ export declare function make(data: Data): Layer<Live | Annotations, never, TestClock>;
12
11
  /**
13
12
  * @tsplus static fncts.test.TestClockOps Live
14
13
  * @tsplus location "@fncts/test/control/TestClock/api"
15
14
  */
16
- export declare const live: Layer<Has<Live> & Has<Annotations>, never, Has<TestClock>>;
15
+ export declare const live: Layer<Live | Annotations, never, TestClock>;
17
16
  /**
18
17
  * @tsplus static fncts.test.TestClockOps adjust
19
18
  * @tsplus location "@fncts/test/control/TestClock/api"
20
19
  */
21
- export declare function adjust(duration: number): IO<Has<TestClock>, never, void>;
20
+ export declare function adjust(duration: number): IO<TestClock, never, void>;
@@ -1,16 +1,16 @@
1
- import { List } from "@fncts/base/collection/immutable/List";
1
+ import { List } from "@fncts/base/collection/immutable/List/definition";
2
2
  import { Future } from "@fncts/io/Future";
3
3
  import { FiberId } from "@fncts/base/data/FiberId/definition";
4
- import { Fiber } from "@fncts/io/Fiber";
5
- import { Clock } from "@fncts/io/Clock";
4
+ import { Fiber } from "@fncts/io/Fiber/definition";
5
+ import { Clock } from "@fncts/io/Clock/definition";
6
6
  import { Ref } from "@fncts/io/Ref";
7
7
  import { Lazy } from "@fncts/base/data/function/definition";
8
- import { Duration } from "@fncts/base/data/Duration";
9
- import { IO, UIO } from "@fncts/io/IO";
10
- import { HashSet } from "@fncts/base/collection/immutable/HashSet";
11
- import { Equatable } from "@fncts/base/typeclass";
12
- import { HashMap } from "@fncts/base/collection/immutable/HashMap";
13
- import { Just, Nothing } from "@fncts/base/data/Maybe";
8
+ import { Duration } from "@fncts/base/data/Duration/definition";
9
+ import { IO, UIO } from "@fncts/io/IO/definition";
10
+ import { HashSet } from "@fncts/base/collection/immutable/HashSet/definition";
11
+ import { Equatable } from "@fncts/base/typeclass/Equatable";
12
+ import { HashMap } from "@fncts/base/collection/immutable/HashMap/definition";
13
+ import { Just, Nothing } from "@fncts/base/data/Maybe/definition";
14
14
  import type { Annotations } from "@fncts/test/control/Annotations";
15
15
  import type { Live } from "@fncts/test/control/Live";
16
16
  export declare class Data {
@@ -53,12 +53,12 @@ export declare class TestClock extends Clock {
53
53
  readonly annotations: Annotations;
54
54
  readonly warningState: Ref.Synchronized<WarningData>;
55
55
  constructor(clockState: Ref<Data>, live: Live, annotations: Annotations, warningState: Ref.Synchronized<WarningData>);
56
- sleep: (ms: Lazy<Duration>) => import("@fncts/io/IO").IO<unknown, never, void>;
57
- currentTime: import("@fncts/io/IO").IO<unknown, never, number>;
56
+ sleep: (ms: Lazy<Duration>) => import("@fncts/io/IO").IO<never, never, void>;
57
+ currentTime: import("@fncts/io/IO").IO<never, never, number>;
58
58
  adjust(duration: number): UIO<void>;
59
59
  setDate(date: Date): UIO<void>;
60
60
  setTime(time: number): UIO<void>;
61
- sleeps: import("@fncts/io/IO").IO<unknown, never, import("@fncts/base/collection/immutable/List").List<number>>;
61
+ sleeps: import("@fncts/io/IO").IO<never, never, import("@fncts/base/collection/immutable/List").List<number>>;
62
62
  get supervizedFibers(): UIO<HashSet<Fiber.Runtime<any, any>>>;
63
63
  private get freeze();
64
64
  private get delay();
@@ -1,5 +1,4 @@
1
1
  import { Layer } from "@fncts/io/Layer";
2
- import { Has } from "@fncts/base/typeclass";
3
2
  import { Live } from "@fncts/test/control/Live";
4
3
  import { ConsoleData } from "@fncts/test/control/TestConsole/definition";
5
4
  import { TestConsole } from "@fncts/test/control/TestConsole/definition";
@@ -7,9 +6,9 @@ import { TestConsole } from "@fncts/test/control/TestConsole/definition";
7
6
  * @tsplus static fncts.test.TestConsoleOps make
8
7
  * @tsplus location "@fncts/test/control/TestConsole/api"
9
8
  */
10
- export declare function make(data: ConsoleData, debug?: boolean): Layer<Has<Live>, never, Has<TestConsole>>;
9
+ export declare function make(data: ConsoleData, debug?: boolean): Layer<Live, never, TestConsole>;
11
10
  /**
12
11
  * @tsplus static fncts.test.TestConsoleOps Live
13
12
  * @tsplus location "@fncts/test/control/TestConsole/api"
14
13
  */
15
- export declare const live: import("@fncts/io/Layer").Layer<import("@fncts/base/typeclass").Has<Live>, never, import("@fncts/base/typeclass").Has<TestConsole>>;
14
+ export declare const live: import("@fncts/io/Layer").Layer<Live, never, TestConsole>;
@@ -1,8 +1,8 @@
1
1
  import { CaseClass } from "@fncts/base/data/CaseClass";
2
2
  import { Vector } from "@fncts/base/collection/immutable/Vector";
3
3
  import { Ref } from "@fncts/io/Ref";
4
- import { FiberRef } from "@fncts/io/FiberRef";
5
- import { UIO, IO } from "@fncts/io/IO";
4
+ import { FiberRef } from "@fncts/io/FiberRef/definition";
5
+ import { UIO, IO } from "@fncts/io/IO/definition";
6
6
  import type { Console } from "@fncts/io/Console";
7
7
  import type { Live } from "@fncts/test/control/Live";
8
8
  export declare class ConsoleData extends CaseClass<{
@@ -24,11 +24,11 @@ export declare class TestConsole implements Console {
24
24
  show(...input: ReadonlyArray<unknown>): UIO<void>;
25
25
  print(line: string): UIO<void>;
26
26
  error(line: string): UIO<void>;
27
- clearInput: import("@fncts/io/IO").IO<unknown, never, void>;
28
- clearOutput: import("@fncts/io/IO").IO<unknown, never, void>;
29
- output: import("@fncts/io/IO").IO<unknown, never, import("@fncts/base/collection/immutable/Vector").Vector<string>>;
30
- errOutput: import("@fncts/io/IO").IO<unknown, never, import("@fncts/base/collection/immutable/Vector").Vector<string>>;
31
- debugOutput: import("@fncts/io/IO").IO<unknown, never, import("@fncts/base/collection/immutable/Vector").Vector<string>>;
27
+ clearInput: import("@fncts/io/IO").IO<never, never, void>;
28
+ clearOutput: import("@fncts/io/IO").IO<never, never, void>;
29
+ output: import("@fncts/io/IO").IO<never, never, import("@fncts/base/collection/immutable/Vector").Vector<string>>;
30
+ errOutput: import("@fncts/io/IO").IO<never, never, import("@fncts/base/collection/immutable/Vector").Vector<string>>;
31
+ debugOutput: import("@fncts/io/IO").IO<never, never, import("@fncts/base/collection/immutable/Vector").Vector<string>>;
32
32
  feedLines(...lines: ReadonlyArray<string>): UIO<void>;
33
33
  silent<R, E, A>(io: IO<R, E, A>): IO<R, E, A>;
34
34
  debug<R, E, A>(io: IO<R, E, A>): IO<R, E, A>;
@@ -1,6 +1,5 @@
1
- import { Has } from "@fncts/base/typeclass";
2
- import { Clock } from "@fncts/io/Clock";
3
- import { Random } from "@fncts/io/Random";
1
+ import { Clock } from "@fncts/io/Clock/definition";
2
+ import { Random } from "@fncts/io/Random/definition";
4
3
  import { Layer } from "@fncts/io/Layer";
5
4
  import type { Console } from "@fncts/io/Console";
6
5
  import { IOEnv } from "@fncts/io/IOEnv";
@@ -11,6 +10,6 @@ import { TestClock } from "@fncts/test/control/TestClock";
11
10
  import { TestConsole } from "@fncts/test/control/TestConsole";
12
11
  import { TestRandom } from "@fncts/test/control/TestRandom";
13
12
  import { TestConfig } from "@fncts/test/data/TestConfig";
14
- export declare type TestEnvironment = Has<Annotations> & Has<Live> & Has<Sized> & Has<TestClock> & Has<TestConfig> & Has<TestRandom> & Has<Clock> & Has<Random> & Has<Console> & Has<TestConsole>;
13
+ export declare type TestEnvironment = Annotations | Live | Sized | TestClock | TestConfig | TestRandom | Clock | Random | Console | TestConsole;
15
14
  export declare const LiveTestEnvironment: Layer<IOEnv, never, TestEnvironment>;
16
- export declare const TestEnvironment: import("@fncts/io/Layer").Layer<unknown, never, TestEnvironment>;
15
+ export declare const TestEnvironment: import("@fncts/io/Layer").Layer<never, never, TestEnvironment>;
@@ -1,5 +1,4 @@
1
- import { Has } from "@fncts/base/typeclass";
2
- import { UIO } from "@fncts/io/IO";
1
+ import { UIO } from "@fncts/io/IO/definition";
3
2
  import { Layer } from "@fncts/io/Layer";
4
3
  import { Either } from "@fncts/base/data/Either/definition";
5
4
  import type { Annotations } from "./Annotations.js";
@@ -7,7 +6,7 @@ import type { Spec } from "./Spec.js";
7
6
  import type { ExecutionStrategy } from "@fncts/base/data/ExecutionStrategy";
8
7
  import { ExecutedSpec } from "../data/ExecutedSpec.js";
9
8
  export interface TestExecutor<R> {
10
- readonly run: <E>(spec: Spec<R & Has<Annotations>, E>, defExec: ExecutionStrategy) => UIO<ExecutedSpec<E>>;
9
+ readonly run: <E>(spec: Spec<R | Annotations, E>, defExec: ExecutionStrategy) => UIO<ExecutedSpec<E>>;
11
10
  readonly environment: Layer<unknown, never, R>;
12
11
  }
13
- export declare function defaultTestExecutor<R>(env: Layer<unknown, never, R & Has<Annotations>>): TestExecutor<R & Has<Annotations>>;
12
+ export declare function defaultTestExecutor<R>(env: Layer<never, never, R | Annotations>): TestExecutor<R | Annotations>;
@@ -1,6 +1,5 @@
1
- import { UIO, URIO } from "@fncts/io/IO";
1
+ import { UIO, URIO } from "@fncts/io/IO/definition";
2
2
  import { Layer } from "@fncts/io/Layer";
3
- import { Has } from "@fncts/base/typeclass";
4
3
  /**
5
4
  * @tsplus type fncts.test.TestLogger
6
5
  * @tsplus companion fncts.test.TestLoggerOps
@@ -17,9 +16,9 @@ export declare const TestLoggerTag: import("@fncts/base/data/Tag").Tag<TestLogge
17
16
  * @tsplus static fncts.test.TestLoggerOps fromConsole
18
17
  * @tsplus location "@fncts/test/control/TestLogger"
19
18
  */
20
- export declare const fromConsole: Layer<unknown, never, Has<TestLogger>>;
19
+ export declare const fromConsole: Layer<never, never, TestLogger>;
21
20
  /**
22
21
  * @tsplus static fncts.test.TestLoggerOps logLine
23
22
  * @tsplus location "@fncts/test/control/TestLogger"
24
23
  */
25
- export declare function logLine(line: string): URIO<Has<TestLogger>, void>;
24
+ export declare function logLine(line: string): URIO<TestLogger, void>;
@@ -1,49 +1,49 @@
1
1
  import { Byte } from "@fncts/base/data/Byte";
2
2
  import { Layer } from "@fncts/io/Layer";
3
- import { Has } from "@fncts/base/typeclass";
3
+ import { Random } from "@fncts/io/Random/definition";
4
4
  import { Data, TestRandom } from "@fncts/test/control/TestRandom";
5
5
  /**
6
6
  * @tsplus static fncts.test.TestRandom feedInts
7
7
  * @tsplus location "@fncts/test/control/TestRandom/api"
8
8
  */
9
- export declare function feedInts(...ints: ReadonlyArray<number>): import("@fncts/io/IO").IO<import("@fncts/base/typeclass").Has<TestRandom>, never, void>;
9
+ export declare function feedInts(...ints: ReadonlyArray<number>): import("@fncts/io/IO").IO<TestRandom, never, void>;
10
10
  /**
11
11
  * @tsplus static fncts.test.TestRandom feedBytes
12
12
  * @tsplus location "@fncts/test/control/TestRandom/api"
13
13
  */
14
- export declare function feedBytes(...bytes: ReadonlyArray<ReadonlyArray<Byte>>): import("@fncts/io/IO").IO<import("@fncts/base/typeclass").Has<TestRandom>, never, void>;
14
+ export declare function feedBytes(...bytes: ReadonlyArray<ReadonlyArray<Byte>>): import("@fncts/io/IO").IO<TestRandom, never, void>;
15
15
  /**
16
16
  * @tsplus static fncts.test.TestRandom feedChars
17
17
  * @tsplus location "@fncts/test/control/TestRandom/api"
18
18
  */
19
- export declare function feedChars(...chars: ReadonlyArray<string>): import("@fncts/io/IO").IO<import("@fncts/base/typeclass").Has<TestRandom>, never, void>;
19
+ export declare function feedChars(...chars: ReadonlyArray<string>): import("@fncts/io/IO").IO<TestRandom, never, void>;
20
20
  /**
21
21
  * @tsplus static fncts.test.TestRandom feedDoubles
22
22
  * @tsplus location "@fncts/test/control/TestRandom/api"
23
23
  */
24
- export declare function feedDoubles(...doubles: ReadonlyArray<number>): import("@fncts/io/IO").IO<import("@fncts/base/typeclass").Has<TestRandom>, never, void>;
24
+ export declare function feedDoubles(...doubles: ReadonlyArray<number>): import("@fncts/io/IO").IO<TestRandom, never, void>;
25
25
  /**
26
26
  * @tsplus static fncts.test.TestRandom feedStrings
27
27
  * @tsplus location "@fncts/test/control/TestRandom/api"
28
28
  */
29
- export declare function feedStrings(...strings: ReadonlyArray<string>): import("@fncts/io/IO").IO<import("@fncts/base/typeclass").Has<TestRandom>, never, void>;
29
+ export declare function feedStrings(...strings: ReadonlyArray<string>): import("@fncts/io/IO").IO<TestRandom, never, void>;
30
30
  /**
31
31
  * @tsplus static fncts.test.TestRandom feedBooleans
32
32
  * @tsplus location "@fncts/test/control/TestRandom/api"
33
33
  */
34
- export declare function feedBooleans(...booleans: ReadonlyArray<boolean>): import("@fncts/io/IO").IO<import("@fncts/base/typeclass").Has<TestRandom>, never, void>;
34
+ export declare function feedBooleans(...booleans: ReadonlyArray<boolean>): import("@fncts/io/IO").IO<TestRandom, never, void>;
35
35
  /**
36
36
  * @tsplus static fncts.test.TestRandomOps make
37
37
  * @tsplus location "@fncts/test/control/TestRandom/api"
38
38
  */
39
- export declare function make(initialData: Data): Layer<unknown, never, unknown & Has<TestRandom>>;
39
+ export declare function make(initialData: Data): Layer<never, never, Random | TestRandom>;
40
40
  /**
41
41
  * @tsplus static fncts.test.TestRandomOps Deterministic
42
42
  * @tsplus location "@fncts/test/control/TestRandom/api"
43
43
  */
44
- export declare const determinictic: import("@fncts/io/Layer").Layer<unknown, never, import("@fncts/base/typeclass").Has<TestRandom>>;
44
+ export declare const determinictic: import("@fncts/io/Layer").Layer<never, never, import("@fncts/io/Random").Random | TestRandom>;
45
45
  /**
46
46
  * @tsplus static fncts.test.TestRandomOps Random
47
47
  * @tsplus location "@fncts/test/control/TestRandom/api"
48
48
  */
49
- export declare const random: Layer<unknown, never, Has<TestRandom>>;
49
+ export declare const random: Layer<unknown, never, TestRandom>;
@@ -1,11 +1,11 @@
1
- import { Random } from "@fncts/io/Random";
1
+ import { Random } from "@fncts/io/Random/definition";
2
2
  import { Ref } from "@fncts/io/Ref";
3
- import { UIO, IO } from "@fncts/io/IO";
3
+ import { UIO, IO } from "@fncts/io/IO/definition";
4
4
  import { Vector } from "@fncts/base/collection/immutable/Vector";
5
5
  import { Byte } from "@fncts/base/data/Byte";
6
- import { ImmutableQueue } from "@fncts/base/collection/immutable/Queue";
7
- import { Maybe } from "@fncts/base/data/Maybe";
8
- import { List } from "@fncts/base/collection/immutable/List";
6
+ import { ImmutableQueue } from "@fncts/base/collection/immutable/Queue/definition";
7
+ import { Maybe } from "@fncts/base/data/Maybe/definition";
8
+ import { List } from "@fncts/base/collection/immutable/List/definition";
9
9
  import type { ArrayInt } from "@fncts/base/util/rand";
10
10
  /**
11
11
  * @tsplus static fncts.test.TestRandomOps Tag
@@ -1,5 +1,5 @@
1
1
  import { Vector } from "@fncts/base/collection/immutable/Vector";
2
- import { List } from "@fncts/base/collection/immutable/List";
2
+ import { List } from "@fncts/base/collection/immutable/List/definition";
3
3
  import type { ExecutionResult } from "../../data/ExecutionResult.js";
4
4
  import type { TestAnnotationRenderer } from "../TestAnnotationRenderer.js";
5
5
  /**
@@ -1,8 +1,7 @@
1
1
  import { Layer } from "@fncts/io/Layer";
2
- import { Has } from "@fncts/base/typeclass";
3
- import { URIO } from "@fncts/io/IO";
2
+ import { URIO } from "@fncts/io/IO/definition";
4
3
  import { ExecutionStrategy } from "@fncts/base/data/ExecutionStrategy";
5
- import { Clock } from "@fncts/io/Clock";
4
+ import { Clock } from "@fncts/io/Clock/definition";
6
5
  import type { RuntimeConfig } from "@fncts/io/RuntimeConfig";
7
6
  import type { Annotations } from "@fncts/test/control/Annotations";
8
7
  import type { TestReporter } from "@fncts/test/control/DefaultTestReporter/render";
@@ -14,7 +13,7 @@ export declare class TestRunner<R, E> {
14
13
  readonly executor: TestExecutor<R>;
15
14
  readonly runtimeConfig: RuntimeConfig;
16
15
  readonly reporter: TestReporter<E>;
17
- readonly bootstrap: Layer<unknown, never, Has<TestLogger>>;
18
- constructor(executor: TestExecutor<R>, runtimeConfig?: RuntimeConfig, reporter?: TestReporter<E>, bootstrap?: Layer<unknown, never, Has<TestLogger>>);
19
- run(spec: Spec<R & Has<Annotations>, E>): URIO<Has<TestLogger>, ExecutedSpec<E>>;
16
+ readonly bootstrap: Layer<never, never, TestLogger>;
17
+ constructor(executor: TestExecutor<R>, runtimeConfig?: RuntimeConfig, reporter?: TestReporter<E>, bootstrap?: Layer<never, never, TestLogger>);
18
+ run(spec: Spec<R | Annotations, E>): URIO<TestLogger, ExecutedSpec<E>>;
20
19
  }
package/control.d.ts ADDED
@@ -0,0 +1,24 @@
1
+ export type {} from "./control/AbstractRunnableSpec.js";
2
+ export type {} from "./control/Annotations.js";
3
+ export type {} from "./control/Assertion.js";
4
+ export type {} from "./control/AssertionIO.js";
5
+ export type {} from "./control/DefaultRunnableSpec.js";
6
+ export type {} from "./control/DefaultTestReporter.js";
7
+ export type {} from "./control/FreeBooleanAlgebraIO.js";
8
+ export type {} from "./control/Gen.js";
9
+ export type {} from "./control/Live.js";
10
+ export type {} from "./control/RunnableSpec.js";
11
+ export type {} from "./control/Sample.js";
12
+ export type {} from "./control/Sized.js";
13
+ export type {} from "./control/Spec.js";
14
+ export type {} from "./control/SummaryBuilder.js";
15
+ export type {} from "./control/Test.js";
16
+ export type {} from "./control/TestAnnotationRenderer.js";
17
+ export type {} from "./control/TestAspect.js";
18
+ export type {} from "./control/TestClock.js";
19
+ export type {} from "./control/TestConsole.js";
20
+ export type {} from "./control/TestEnvironment.js";
21
+ export type {} from "./control/TestExecutor.js";
22
+ export type {} from "./control/TestLogger.js";
23
+ export type {} from "./control/TestRandom.js";
24
+ export type {} from "./control/TestRunner.js";
@@ -1,4 +1,4 @@
1
- import { Maybe, Nothing } from "@fncts/base/data/Maybe";
1
+ import { Maybe, Nothing } from "@fncts/base/data/Maybe/definition";
2
2
  import type { FailureDetails } from "./FailureDetails.js";
3
3
  import type { GenFailureDetails } from "./GenFailureDetails.js";
4
4
  export declare class FailureDetailsResult {
@@ -1,4 +1,4 @@
1
- import { Maybe } from "@fncts/base/data/Maybe";
1
+ import { Maybe } from "@fncts/base/data/Maybe/definition";
2
2
  import { AssertionValue } from "./definition.js";
3
3
  /**
4
4
  * @tsplus fluent fncts.test.data.AssertionValue label
@@ -1,5 +1,5 @@
1
1
  import { LazyValue } from "@fncts/base/control/LazyValue";
2
- import { Maybe, Nothing } from "@fncts/base/data/Maybe";
2
+ import { Maybe, Nothing } from "@fncts/base/data/Maybe/definition";
3
3
  import type { AssertionIO } from "../../control/AssertionIO/definition.js";
4
4
  import type { FreeBooleanAlgebra } from "../FreeBooleanAlgebra.js";
5
5
  export declare const AssertionValueTypeId: unique symbol;
@@ -1,4 +1,4 @@
1
- import { List } from "@fncts/base/collection/immutable/List";
1
+ import { List } from "@fncts/base/collection/immutable/List/definition";
2
2
  import type { Line } from "./LogLine/Line.js";
3
3
  import type { TestAnnotationMap } from "./TestAnnotationMap.js";
4
4
  export interface Failed {
@@ -1,5 +1,5 @@
1
- import { Cons } from "@fncts/base/collection/immutable/List";
2
- import { Maybe } from "@fncts/base/data/Maybe";
1
+ import { Cons } from "@fncts/base/collection/immutable/List/definition";
2
+ import { Maybe } from "@fncts/base/data/Maybe/definition";
3
3
  import type { FailureDetailsResult } from "./AssertionResult.js";
4
4
  import type { AssertionValue } from "./AssertionValue.js";
5
5
  import type { FreeBooleanAlgebra } from "./FreeBooleanAlgebra.js";
@@ -1,6 +1,6 @@
1
- import { Maybe } from "@fncts/base/data/Maybe";
1
+ import { Maybe } from "@fncts/base/data/Maybe/definition";
2
2
  import { Either } from "@fncts/base/data/Either/definition";
3
- import { Eval } from "@fncts/base/control/Eval";
3
+ import { Eval } from "@fncts/base/control/Eval/definition";
4
4
  import { FreeBooleanAlgebra } from "./definition.js";
5
5
  /**
6
6
  * @tsplus fluent fncts.test.FreeBooleanAlgebra and
@@ -1,8 +1,8 @@
1
- import { HashSet } from "@fncts/base/collection/immutable/HashSet";
1
+ import { HashSet } from "@fncts/base/collection/immutable/HashSet/definition";
2
2
  import { Either } from "@fncts/base/data/Either/definition";
3
3
  import { Conc } from "@fncts/base/collection/immutable/Conc";
4
4
  import { Ref } from "@fncts/io/Ref";
5
- import { Fiber } from "@fncts/io/Fiber";
5
+ import { Fiber } from "@fncts/io/Fiber/definition";
6
6
  import { TestAnnotation } from "./definition.js";
7
7
  export declare const IgnoredTag: import("@fncts/base/data/Tag.js").Tag<number>;
8
8
  /**
@@ -1,5 +1,6 @@
1
- import { Hashable, Equatable } from "@fncts/base/typeclass";
2
- import { Tag } from "@fncts/base/data/Tag";
1
+ import { Hashable } from "@fncts/base/typeclass/Hashable";
2
+ import { Equatable } from "@fncts/base/typeclass/Equatable";
3
+ import { Tag } from "@fncts/base/data/Tag/definition";
3
4
  export declare const TestAnnotationTypeId: unique symbol;
4
5
  export declare type TestAnnotationTypeId = typeof TestAnnotationTypeId;
5
6
  /**
@@ -1,4 +1,4 @@
1
- import { HashMap } from "@fncts/base/collection/immutable/HashMap";
1
+ import { HashMap } from "@fncts/base/collection/immutable/HashMap/definition";
2
2
  import { Conc } from "@fncts/base/collection/immutable/Conc";
3
3
  import type { TestAnnotation } from "./TestAnnotation.js";
4
4
  export declare class TestAnnotationMap {
@@ -1,4 +1,4 @@
1
- import { Maybe } from "@fncts/base/data/Maybe";
1
+ import { Maybe } from "@fncts/base/data/Maybe/definition";
2
2
  export declare class TestArgs {
3
3
  readonly testSearchTerms: ReadonlyArray<string>;
4
4
  readonly tagSearchTerms: ReadonlyArray<string>;
@@ -1,5 +1,4 @@
1
1
  import { Layer } from "@fncts/io/Layer";
2
- import { Has } from "@fncts/base/typeclass";
3
2
  /**
4
3
  * @tsplus type fncts.test.data.TestConfig
5
4
  * @tsplus companion fncts.test.data.TestConfigOps
@@ -19,24 +18,24 @@ export declare const TestConfigTag: import("@fncts/base/data/Tag").Tag<TestConfi
19
18
  * @tsplus static fncts.test.data.TestConfigOps Live
20
19
  * @tsplus location "@fncts/test/data/TestConfig"
21
20
  */
22
- export declare function live(_: TestConfig): Layer<unknown, never, Has<TestConfig>>;
21
+ export declare function live(_: TestConfig): Layer<never, never, TestConfig>;
23
22
  /**
24
23
  * @tsplus static fncts.test.data.TestConfigOps repeats
25
24
  * @tsplus location "@fncts/test/data/TestConfig"
26
25
  */
27
- export declare const repeats: import("@fncts/io/IO").IO<import("@fncts/base/typeclass").Has<TestConfig>, never, number>;
26
+ export declare const repeats: import("@fncts/io/IO").IO<TestConfig, never, number>;
28
27
  /**
29
28
  * @tsplus static fncts.test.data.TestConfigOps retries
30
29
  * @tsplus location "@fncts/test/data/TestConfig"
31
30
  */
32
- export declare const retries: import("@fncts/io/IO").IO<import("@fncts/base/typeclass").Has<TestConfig>, never, number>;
31
+ export declare const retries: import("@fncts/io/IO").IO<TestConfig, never, number>;
33
32
  /**
34
33
  * @tsplus static fncts.test.data.TestConfigOps samples
35
34
  * @tsplus location "@fncts/test/data/TestConfig"
36
35
  */
37
- export declare const samples: import("@fncts/io/IO").IO<import("@fncts/base/typeclass").Has<TestConfig>, never, number>;
36
+ export declare const samples: import("@fncts/io/IO").IO<TestConfig, never, number>;
38
37
  /**
39
38
  * @tsplus static fncts.test.data.TestConfigOps shrinks
40
39
  * @tsplus location "@fncts/test/data/TestConfig"
41
40
  */
42
- export declare const shrinks: import("@fncts/io/IO").IO<import("@fncts/base/typeclass").Has<TestConfig>, never, number>;
41
+ export declare const shrinks: import("@fncts/io/IO").IO<TestConfig, never, number>;
@@ -1,4 +1,4 @@
1
- import { Cause } from "@fncts/base/data/Cause";
1
+ import { Cause } from "@fncts/base/data/Cause/definition";
2
2
  import type { TestResult } from "./FailureDetails.js";
3
3
  export declare const enum TestFailureTag {
4
4
  AssertionFailure = "AssertionFailure",
package/data.d.ts ADDED
@@ -0,0 +1,19 @@
1
+ export type {} from "./data/AssertionData.js";
2
+ export type {} from "./data/AssertionResult.js";
3
+ export type {} from "./data/AssertionValue.js";
4
+ export type {} from "./data/ExecutedSpec.js";
5
+ export type {} from "./data/ExecutionResult.js";
6
+ export type {} from "./data/FailureDetails.js";
7
+ export type {} from "./data/FreeBooleanAlgebra.js";
8
+ export type {} from "./data/GenFailureDetails.js";
9
+ export type {} from "./data/LogLine.js";
10
+ export type {} from "./data/Render.js";
11
+ export type {} from "./data/RenderParam.js";
12
+ export type {} from "./data/Summary.js";
13
+ export type {} from "./data/TestAnnotation.js";
14
+ export type {} from "./data/TestAnnotationMap.js";
15
+ export type {} from "./data/TestArgs.js";
16
+ export type {} from "./data/TestConfig.js";
17
+ export type {} from "./data/TestFailure.js";
18
+ export type {} from "./data/TestSuccess.js";
19
+ export type {} from "./data/TestTimeoutException.js";
package/global.d.ts ADDED
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @tsplus global
3
+ */
4
+ import type {} from "@fncts/io/global";
5
+ /**
6
+ * @tsplus global
7
+ */
8
+ import type {} from "@fncts/test";
9
+ export {};
package/index.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ export type {} from "./api.js";
2
+ export type {} from "./control.js";
3
+ export type {} from "./data.js";
4
+ export type {} from "./demo.js";
5
+ export type {} from "./global.js";
6
+ export type {} from "./util.js";
package/package.json CHANGED
@@ -1,15 +1,19 @@
1
1
  {
2
2
  "name": "@fncts/test",
3
- "version": "0.0.12",
3
+ "version": "0.0.15",
4
4
  "dependencies": {
5
- "@fncts/base": "0.0.12",
6
- "@fncts/io": "0.0.12",
7
- "@fncts/typelevel": "0.0.10"
5
+ "@fncts/base": "0.0.15",
6
+ "@fncts/io": "0.0.15",
7
+ "@fncts/typelevel": "0.0.12"
8
8
  },
9
9
  "exports": {
10
10
  "./*": {
11
11
  "import": "./_mjs/*.mjs",
12
12
  "require": "./_cjs/*.cjs"
13
+ },
14
+ ".": {
15
+ "import": "./_mjs/index.mjs",
16
+ "require": "./_cjs/index.cjs"
13
17
  }
14
18
  },
15
19
  "publishConfig": {
package/util/math.d.ts CHANGED
@@ -1,11 +1,11 @@
1
- import { IO, URIO } from "@fncts/io/IO";
1
+ import { IO, UIO } from "@fncts/io/IO/definition";
2
2
  /** @internal */
3
3
  export declare const MIN_VALUE_32: number;
4
4
  /** @internal */
5
5
  export declare const MAX_VALUE_32: number;
6
6
  /** @internal */
7
7
  export declare const EPSILON_32: number;
8
- export declare function safeFloatToIndex(f: number, label: string): IO<unknown, never, number>;
8
+ export declare function safeFloatToIndex(f: number, label: string): IO<never, never, number>;
9
9
  export declare function decomposeFloat(f: number): {
10
10
  exponent: number;
11
11
  significand: number;
@@ -110,7 +110,7 @@ export declare function indexToDouble(index: ArrayInt64): number;
110
110
  *
111
111
  * @internal
112
112
  */
113
- export declare function safeDoubleToIndex(d: number, label: string): IO<unknown, never, ArrayInt64>;
113
+ export declare function safeDoubleToIndex(d: number, label: string): IO<never, never, ArrayInt64>;
114
114
  export declare function nextUp(x: number): number;
115
115
  export declare function nextAfter(x: number, y: number): number;
116
116
  export declare function computeBiasedRanges(min: ArrayInt64, max: ArrayInt64, biasedRanges?: {
@@ -123,7 +123,7 @@ export declare function computeBiasedRanges(min: ArrayInt64, max: ArrayInt64, bi
123
123
  export declare function computeArrayInt64GenerateRange(min: ArrayInt64, max: ArrayInt64, biasFactor: number | undefined, biasedRanges: {
124
124
  min: ArrayInt64;
125
125
  max: ArrayInt64;
126
- }[] | undefined): URIO<unknown, {
126
+ }[] | undefined): UIO<{
127
127
  min: ArrayInt64;
128
128
  max: ArrayInt64;
129
129
  }>;
package/util.d.ts ADDED
@@ -0,0 +1 @@
1
+ export type {} from "./util/math.js";