Variable OptionalRetryOptionsConst

OptionalRetryOptions: ZodObject<{
    backoffMultiplier: ZodOptional<ZodNumber>;
    initialDelay: ZodOptional<ZodNumber>;
    retries: ZodOptional<ZodNumber>;
}, "strip", ZodTypeAny, {
    backoffMultiplier?: number;
    initialDelay?: number;
    retries?: number;
}, {
    backoffMultiplier?: number;
    initialDelay?: number;
    retries?: number;
}> = ...

Optional retry options schema. Defines the optional retry options for HTTP requests.

Type declaration

  • backoffMultiplier: ZodOptional<ZodNumber>

    The multiplier to apply to the delay between subsequent retries. Optional and must be between 1 and 2.

  • initialDelay: ZodOptional<ZodNumber>

    The initial delay before the first retry attempt in milliseconds. Optional and must be between 100 and 5000 ms.

  • retries: ZodOptional<ZodNumber>

    The number of retry attempts. Optional and must be between 0 and 5.

Type declaration

  • OptionalbackoffMultiplier?: number

    The multiplier to apply to the delay between subsequent retries. Optional and must be between 1 and 2.

  • OptionalinitialDelay?: number

    The initial delay before the first retry attempt in milliseconds. Optional and must be between 100 and 5000 ms.

  • Optionalretries?: number

    The number of retry attempts. Optional and must be between 0 and 5.

Type declaration

  • OptionalbackoffMultiplier?: number

    The multiplier to apply to the delay between subsequent retries. Optional and must be between 1 and 2.

  • OptionalinitialDelay?: number

    The initial delay before the first retry attempt in milliseconds. Optional and must be between 100 and 5000 ms.

  • Optionalretries?: number

    The number of retry attempts. Optional and must be between 0 and 5.