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

♻️ Add missing types on exported #5203

Merged
merged 2 commits into from
Aug 10, 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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .yarn/versions/4e927b19.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
releases:
fast-check: patch

declined:
- "@fast-check/ava"
- "@fast-check/jest"
- "@fast-check/vitest"
- "@fast-check/worker"
2 changes: 1 addition & 1 deletion packages/fast-check/src/check/symbols.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* @remarks Since 1.8.0
* @public
*/
export const cloneMethod = Symbol.for('fast-check/cloneMethod');
export const cloneMethod: unique symbol = Symbol.for('fast-check/cloneMethod');

/**
* Object instance that should be cloned from one generation/shrink to another
Expand Down
2 changes: 1 addition & 1 deletion packages/fast-check/src/stream/Stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class Stream<T> implements IterableIterator<T> {
next(): IteratorResult<T> {
return this.g.next();
}
[safeSymbolIterator](): IterableIterator<T> {
[Symbol.iterator](): IterableIterator<T> {
// /*DEBUG*/ this.closeCurrentStream();
return this.g;
}
Expand Down
4 changes: 2 additions & 2 deletions packages/fast-check/src/utils/stringify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const safePositiveInfinity = Number.POSITIVE_INFINITY;
* @remarks Since 2.17.0
* @public
*/
export const toStringMethod = Symbol.for('fast-check/toStringMethod');
export const toStringMethod: unique symbol = Symbol.for('fast-check/toStringMethod');
/**
* Interface to implement for {@link toStringMethod}
*
Expand Down Expand Up @@ -62,7 +62,7 @@ export function hasToStringMethod<T>(instance: T): instance is T & WithToStringM
* @remarks Since 2.17.0
* @public
*/
export const asyncToStringMethod = Symbol.for('fast-check/asyncToStringMethod');
export const asyncToStringMethod: unique symbol = Symbol.for('fast-check/asyncToStringMethod');
/**
* Interface to implement for {@link asyncToStringMethod}
*
Expand Down
Loading