Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-export FastCheck #2505

Merged
merged 1 commit into from
Apr 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/big-actors-sort.md
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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