Type Alias SetRequiredAndNotNull<T, K>

SetRequiredAndNotNull: Omit<T, K> & CompleteRequire<
    { [PropertyName in K]: NonNullable<T[PropertyName]> },
>

Require only a subset of object properties and require that they be not null. This is particularly useful in conjunction with the "exactOptionalPropertyTypes" tsconfig flag.

Type Parameters

  • T
  • K extends keyof T