Skip to main content Link Search Menu Expand Document (external link)

Lookup overview

Added in v1.0.0


Table of contents


models

Lookup (type alias)

A Lookup represents a lookup function that, given a key of type Key, can return an effect that will either produce a value of type Value or fail with an error of type Error using an environment of type Environment.

Signature

export type Lookup<Key, Environment, Error, Value> = (key: Key) => Effect.Effect<Environment, Error, Value>

Added in v1.0.0