data-cap
    Preparing search index...

    Type Alias FieldOwnership<T>

    FieldOwnership:
        | true
        | {
            [K in keyof T]?: T[K] extends readonly unknown[]
                ? true
                : T[K] extends object ? FieldOwnership<T[K]> : true
        }

    Declares which fields an operation may write. true claims a whole subtree (at any level, including the root -- a getter may legitimately declare fields: true to mean "the entire capability"); a nested object claims only the listed sub-keys. Arrays can only ever be owned wholesale (true) -- there is no per-item ownership concept, matching arrays being atomic, ordinary values.

    Type Parameters

    • T