@karmaniverous/entity-tools
    Preparing search index...

    Type Alias WithRequiredAndNonNullable<T, K>

    WithRequiredAndNonNullable: T & { [P in K]-?: NonNullable<T[P]> }

    Returns an object type with specific properties rendered required and non-nullable.

    Type Parameters

    • T

      The object type to modify.

    • K extends keyof T

      Union of keys of T to render required and non-nullable.