Skip to content

Types.ts

This module contains utility types.

Added in v2.0.0

Transform {@link Effect.Effect} to {@link Exit.Exit}

Signature

export type EffectToExit<T> = T extends Effect.Effect<infer A, infer E, any> ? Exit.Exit<A, E> : never

Source: src/Types.ts:20

Added in v2.0.0

Filter sum type to variants which contain a given property key.

Signature

export type HasKey<T, K extends PropertyKey> = T extends any ? (K extends keyof T ? T : never) : never

Source: src/Types.ts:29

Added in v2.0.0

Signature

export type Tail<T extends readonly any[]> = T extends readonly [any, ...infer U] ? U : []

Source: src/Types.ts:12

Added in v2.0.0