Skip to content

Commit

Permalink
add missing TypeLambda to Micro module (#3056)
Browse files Browse the repository at this point in the history
  • Loading branch information
gcanti authored Jun 24, 2024
1 parent 2e8e252 commit 66a1910
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/curly-numbers-promise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"effect": patch
---

add missing `TypeLambda` to `Micro` module
9 changes: 9 additions & 0 deletions packages/effect/src/Micro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import * as Effectable from "./Effectable.js"
import * as Either from "./Either.js"
import { constTrue, constVoid, dual, identity, type LazyArg } from "./Function.js"
import { globalValue } from "./GlobalValue.js"
import type { TypeLambda } from "./HKT.js"
import type { Inspectable } from "./Inspectable.js"
import { NodeInspectSymbol, toStringUnknown } from "./Inspectable.js"
import { StructuralPrototype } from "./internal/effectable.js"
Expand Down Expand Up @@ -65,6 +66,14 @@ export interface Micro<out A, out E = never, out R = never> extends Effect<A, E,
[Symbol.iterator](): MicroIterator<Micro<A, E, R>>
}

/**
* @category type lambdas
* @since 3.4.1
*/
export interface MicroTypeLambda extends TypeLambda {
readonly type: Micro<this["Target"], this["Out1"], this["Out2"]>
}

/**
* @since 3.4.0
* @experimental
Expand Down

0 comments on commit 66a1910

Please sign in to comment.