Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Julius Marminge <julius0216@outlook.com>
  • Loading branch information
tim-smart and juliusmarminge authored Aug 26, 2024
1 parent 92d7ae8 commit d1f5245
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .changeset/chilled-toys-share.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
"effect": minor
"effect": patch
---

add `Micro.isMicroCause` guard
4 changes: 2 additions & 2 deletions packages/effect/src/Micro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,11 @@ export type MicroCauseTypeId = typeof MicroCauseTypeId
export type MicroCause<E> = MicroCause.Die | MicroCause.Fail<E> | MicroCause.Interrupt

/**
* @since 3.7.0
* @since 3.6.6
* @experimental
* @category guards
*/
export const isMicroCause = <E>(self: unknown): self is MicroCause<E> => hasProperty(self, MicroCauseTypeId)
export const isMicroCause = (self: unknown): self is MicroCause<unknown> => hasProperty(self, MicroCauseTypeId)

/**
* @since 3.4.6
Expand Down

0 comments on commit d1f5245

Please sign in to comment.