Skip to content

Commit

Permalink
Re-export FastCheck (#2505)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikearnaldi committed Apr 12, 2024
1 parent 776ef2b commit 0aee906
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/big-actors-sort.md
@@ -0,0 +1,5 @@
---
"@effect/schema": minor
---

Re-export FastCheck to simplify usage and to resolve long term issues with ESM/CJS
2 changes: 1 addition & 1 deletion packages/schema/src/Arbitrary.ts
Expand Up @@ -5,8 +5,8 @@
import * as Option from "effect/Option"
import * as Predicate from "effect/Predicate"
import * as ReadonlyArray from "effect/ReadonlyArray"
import type * as FastCheck from "fast-check"
import * as AST from "./AST.js"
import type * as FastCheck from "./FastCheck.js"
import * as filters_ from "./internal/filters.js"
import * as util_ from "./internal/util.js"
import type * as Schema from "./Schema.js"
Expand Down
9 changes: 9 additions & 0 deletions packages/schema/src/FastCheck.ts
@@ -0,0 +1,9 @@
/**
* @since 1.0.0
*/

/**
* @category re-exports
* @since 1.0.0
*/
export * from "fast-check"
5 changes: 5 additions & 0 deletions packages/schema/src/index.ts
Expand Up @@ -18,6 +18,11 @@ export * as ArrayFormatter from "./ArrayFormatter.js"
*/
export * as Equivalence from "./Equivalence.js"

/**
* @since 1.0.0
*/
export * as FastCheck from "./FastCheck.js"

/**
* @since 1.0.0
*/
Expand Down

0 comments on commit 0aee906

Please sign in to comment.