Type alias RequireParametersUnlessAllAreOptional<T>

RequireParametersUnlessAllAreOptional<T>: Record<string, never> extends NonNullable<T["parameters"]>
    ? T
    : Prettify<T & Required<Pick<T, "parameters">>>

If an object has a parameters property, and the parameters object has required properties, then the parameters property on the root object is marked as required.

Type Parameters

  • T extends {
        parameters?: Record<string, unknown>;
    }