Type Alias RequiredKeysOf<BaseType>

RequiredKeysOf: Exclude<
    {
        [Key in keyof BaseType]: BaseType extends Record<Key, BaseType[Key]>
            ? Key
            : never
    }[keyof BaseType],
    undefined,
>

Modified version of RequiredKeys from type-fest that does not require BaseType to extends object.

Type Parameters

  • BaseType