Skip to content

Commit

Permalink
Merge pull request #165 from ahrjarrett/@ahrjarrett/v0.47.3
Browse files Browse the repository at this point in the history
fix: `some.entriesOf` infers the right thing when used in matching position
  • Loading branch information
ahrjarrett authored Jun 23, 2024
2 parents 58becea + 60f77df commit 06607c7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
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

0 comments on commit 06607c7

Please sign in to comment.