GitHub

OptionalKey

API reference for OptionalKey.

A tuple element, or the source of decode_to, that may be missing (Effect's optionalKey).

Attributes

AttributeTypeDescription
schemaCodec[A_co, I_co, RD_co, RE_co]

Functions

__init__

__init__(schema) -> None
ParameterTypeDescription
schemaCodec[A_co, I_co, RD_co, RE_co]

pipe

pipe[B2](f) -> B2

f(self): S.optional_key(s).pipe(S.decode_to(...)).

ParameterTypeDescription
fCallable[[OptionalKey[A_co, I_co, RD_co, RE_co]], B2]

Returns B2

def pipe[B2](self, f: Callable[[OptionalKey[A_co, I_co, RD_co, RE_co]], B2], /) -> B2:
    """``f(self)``: ``S.optional_key(s).pipe(S.decode_to(...))``."""
    return f(self)