@effect-ts/system
Version:
Effect-TS is a zero dependency set of libraries to write highly productive, purely functional TypeScript at scale.
27 lines (23 loc) • 573 B
text/typescript
// ets_tracing: off
import type { _A, _E, _R } from "../Utils/index.js"
import type { Effect } from "./effect.js"
/**
* Compact the union produced by the result of f
*
* @ets_optimize identity
*/
export function unionFn<ARGS extends any[], Ret extends Effect<any, any, any>>(
_: (...args: ARGS) => Ret
): (...args: ARGS) => Effect<_R<Ret>, _E<Ret>, _A<Ret>> {
return _ as any
}
/**
* Compact the union
*
* @ets_optimize identity
*/
export function union<Ret extends Effect<any, any, any>>(
_: Ret
): Effect<_R<Ret>, _E<Ret>, _A<Ret>> {
return _ as any
}