IGPAPI
    Preparing search index...

    Type Alias WithoutKeys<T, Keys>

    WithoutKeys: [keyof T & Keys] extends [never]
        ? unknown
        : {
            readonly [K in keyof T & Keys]: "this key is reserved or already used by the screen"
        }

    Forbids Keys on T: the handle is flat, so a data, action or item-list key that repeats a reserved key or another member's key would silently shadow it. defineScreen puts it into the constraints of its actions and item lists, so such a declaration does not type-check, and the error names the key.

    Type Parameters

    • T
    • Keys extends PropertyKey