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

fix: some.entriesOf infers the right thing when used in matching position #165

Merged
merged 2 commits into from
Jun 23, 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
5 changes: 5 additions & 0 deletions .changeset/orange-frogs-join.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"any-ts": patch
---

fix: `some.entriesOf` when used in matching position
4 changes: 2 additions & 2 deletions src/some/some.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ export type some_entryOf<
export type some_entriesOf<
invariant,
type extends
| any.array<readonly [any.index, invariant]>
= any.array<readonly [any.index, invariant]>
| any.array<any.pair<keyof invariant, invariant[keyof invariant]>>
= any.array<any.pair<keyof invariant, invariant[keyof invariant]>>
> = type

export type some_arrayOf<
Expand Down