• Enforces the given properties to be set. Thus, they must not be null or undefined.

    Type Parameters

    • T extends object | Record<string, unknown>
    • K extends string | number | symbol

    Parameters

    • obj: T

      object to validate

    • Rest ...propertyNames: K[]

      property names to enforce being non-null

    Returns RequiredNonNull<T, K>

    Throws

    RequiredNonNullPropertiesMissingError if criteria are unmet