Skip to content

Commit

Permalink
Fix id extraction in Context.Tag.Identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
mikearnaldi committed Jun 4, 2024
1 parent 799aa20 commit 294f710
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/sour-dolls-behave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"effect": patch
---

Fix id extraction in Context.Tag.Identifier
2 changes: 1 addition & 1 deletion packages/effect/src/Context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export declare namespace Tag {
* @since 2.0.0
*/
export type Identifier<T extends Tag<any, any> | TagClassShape<any, any>> = T extends Tag<infer A, any> ? A
: T extends TagClassShape<infer A, any> ? A
: T extends TagClassShape<any, any> ? T
: never
}

Expand Down

0 comments on commit 294f710

Please sign in to comment.