gvergnaud/ts-pattern
### [`v3.2.2`](https://togithub.com/gvergnaud/ts-pattern/releases/v3.2.2)
[Compare Source](https://togithub.com/gvergnaud/ts-pattern/compare/v3.2.1...v3.2.2)
Fix a bug reported in issue [#40](https://togithub.com/gvergnaud/ts-pattern/issues/40), where object pattern containing a single wildcard would match any object, even if the key used by the pattern wasn't present on the input object.
```ts
type Id = { teamId: number } | { storeId: number };
const selectedId: Id = { teamId: 1 };
match(selectedId)
.with({ storeId: __ }, () => "storeId")
.with({ teamId: __ }, () => "teamId")
.exhaustive()
// Now outputs "teamId" instead of "storeId"
```
Configuration
π Schedule: At any time (no schedule defined).
π¦ Automerge: Disabled by config. Please merge this manually once you are satisfied.
β» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
π Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box.
This PR contains the following updates:
3.2.1
->3.2.2
Release Notes
gvergnaud/ts-pattern
### [`v3.2.2`](https://togithub.com/gvergnaud/ts-pattern/releases/v3.2.2) [Compare Source](https://togithub.com/gvergnaud/ts-pattern/compare/v3.2.1...v3.2.2) Fix a bug reported in issue [#40](https://togithub.com/gvergnaud/ts-pattern/issues/40), where object pattern containing a single wildcard would match any object, even if the key used by the pattern wasn't present on the input object. ```ts type Id = { teamId: number } | { storeId: number }; const selectedId: Id = { teamId: 1 }; matchConfiguration
π Schedule: At any time (no schedule defined).
π¦ Automerge: Disabled by config. Please merge this manually once you are satisfied.
β» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
π Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.