@fishjam-cloud/js-server-sdk - v0.27.0
    Preparing search index...

    Type Alias Override<T, M>

    Override: {
        [K in keyof T]: K extends keyof M
            ? undefined extends T[K] ? M[K] | undefined : M[K]
            : T[K]
    }

    Replaces the types of fields in T whose names appear in M, leaving the rest untouched. Produces a flat object type (single mapped type, no Omit & {...} chain) so editor hover displays the resulting properties directly.

    Keys present in M but not in T are ignored — only fields that already exist on T are overridden, so a shared override map can be reused across multiple source types.

    undefined is re-added to the override when the original field allowed it, so optional fields on generated proto types (e.g. peerId?: string | undefined) remain assignable from undefined under exactOptionalPropertyTypes.

    Type Parameters

    • T
    • M