CCC Docs
    Preparing search index...

    Type Alias ChildContext<T>

    ChildContext: { [K in keyof T]: (context: ContextType<T[K]>) => void }[keyof T] extends (
        context: infer Context,
    ) => void
        ? Context
        : unknown

    The combined context required by every codec in a record.

    Map each child context to a function parameter before forming the union so a legacy any (normalized to unknown by ContextType) cannot absorb the other contexts. Inferring from the resulting contravariant parameter position converts the function union into an intersection of its contexts.

    Type Parameters

    • T extends Record<string, CodecLike<any, any, any>>