Utility TypeScript @ 2.0.0-beta
    Preparing search index...

    Type Alias KeysRequired<T_Object>

    KeysRequired: {
        [_Key in keyof T_Object]-?: {} extends Pick<T_Object, _Key>
            ? never
            : _Key
    }[keyof T_Object]

    Returns the keys that are required by the given object type.

    Type Parameters

    • T_Object

      Type with keys.

    2.0.0-alpha