data-cap
    Preparing search index...

    Type Alias OwnedPatch<T, TOwnership>

    OwnedPatch: TOwnership extends true
        ? DeepPartial<T>
        : T extends readonly unknown[]
            ? never
            : T extends Date
            | URL
            | RegExp
                ? never
                : T extends object
                    ? {
                        [K in keyof TOwnership & keyof T]?: OwnedPatch<T[K], TOwnership[K]>
                    }
                    : never

    Narrows DeepPartial<T> down to exactly the keys TOwnership (a FieldOwnership<T> value) permits, mirroring its shape one-for-one. A processor/optimistic callback declared against writes: {user: {email: true}} cannot type-check while returning {post: ...}, or even {user: {name: ...}} -- a sibling field it doesn't own. This narrows the legal shape at compile time only; resolveOperationPatch still enforces the same boundary at runtime regardless, since a processor's actual return value is never statically provable to match its declared type.

    Type Parameters

    • T
    • TOwnership