Package: effect
Module: Context
Returns the service currently stored for a key, or undefined when the key
is absent.
When to use
Use when you need to read the service stored for a key without resolving
Context.Reference defaults.
Gotchas
This is a raw lookup and does not resolve default values for
Context.Reference keys.
See
getOption for a reference-aware optional lookupSignature
declare const getOrUndefined: { <S, I>(key: Key<I, S>): <Services>(self: Context<Services>) => S | undefined; <Services, S, I>(self: Context<Services>, key: Key<I, S>): S | undefined; }
Since v4.0.0