* docs: migrate ui docs to docs universe * created yarn workspace * added eslint and tsconfig configurations * fix eslint configurations * fixed eslint configurations * shared tailwind configurations * added shared ui package * added more shared components * migrating more components * made details components shared * move InlineCode component * moved InputText * moved Loading component * Moved Modal component * moved Select components * Moved Tooltip component * moved Search components * moved ColorMode provider * Moved Notification components and providers * used icons package * use UI colors in api-reference * moved Navbar component * used Navbar and Search in UI docs * added Feedback to UI docs * general enhancements * fix color mode * added copy colors file from ui-preset * added features and enhancements to UI docs * move Sidebar component and provider * general fixes and preparations for deployment * update docusaurus version * adjusted versions * fix output directory * remove rootDirectory property * fix yarn.lock * moved code component * added vale for all docs MD and MDX * fix tests * fix vale error * fix deployment errors * change ignore commands * add output directory * fix docs test * general fixes * content fixes * fix announcement script * added changeset * fix vale checks * added nofilter option * fix vale error
3.5 KiB
displayed_sidebar
| displayed_sidebar |
|---|
| jsClientSidebar |
Interface: RetryConfig
internal.RetryConfig
Configuration for the Axios request method.
Properties
backoffType
• Optional backoffType: "linear" | "static" | "exponential"
Backoff Type; 'linear', 'static' or 'exponential'.
Defined in
medusa-js/node_modules/retry-axios/dist/src/index.d.ts:47
checkRetryAfter
• Optional checkRetryAfter: boolean
Whether to check for 'Retry-After' header in response and use value as delay. Defaults to true.
Defined in
medusa-js/node_modules/retry-axios/dist/src/index.d.ts:51
currentRetryAttempt
• Optional currentRetryAttempt: number
The number of retries already attempted.
Defined in
medusa-js/node_modules/retry-axios/dist/src/index.d.ts:13
httpMethodsToRetry
• Optional httpMethodsToRetry: string[]
The HTTP Methods that will be automatically retried. Defaults to ['GET','PUT','HEAD','OPTIONS','DELETE']
Defined in
medusa-js/node_modules/retry-axios/dist/src/index.d.ts:26
instance
• Optional instance: AxiosInstance
The instance of the axios object to which the interceptor is attached.
Defined in
medusa-js/node_modules/retry-axios/dist/src/index.d.ts:21
maxRetryAfter
• Optional maxRetryAfter: number
Max permitted Retry-After value (in ms) - rejects if greater. Defaults to 5 mins.
Defined in
medusa-js/node_modules/retry-axios/dist/src/index.d.ts:55
maxRetryDelay
• Optional maxRetryDelay: number
Ceiling for calculated delay (in ms) - delay will not exceed this value.
Defined in
medusa-js/node_modules/retry-axios/dist/src/index.d.ts:59
noResponseRetries
• Optional noResponseRetries: number
When there is no response, the number of retries to attempt. Defaults to 2.
Defined in
medusa-js/node_modules/retry-axios/dist/src/index.d.ts:43
onRetryAttempt
• Optional onRetryAttempt: (err: AxiosError<any, any>) => void
Type declaration
▸ (err): void
Function to invoke when a retry attempt is made.
Parameters
| Name | Type |
|---|---|
err |
AxiosError<any, any> |
Returns
void
Defined in
medusa-js/node_modules/retry-axios/dist/src/index.d.ts:35
retry
• Optional retry: number
The number of times to retry the request. Defaults to 3.
Defined in
medusa-js/node_modules/retry-axios/dist/src/index.d.ts:9
retryDelay
• Optional retryDelay: number
The amount of time to initially delay the retry. Defaults to 100.
Defined in
medusa-js/node_modules/retry-axios/dist/src/index.d.ts:17
shouldRetry
• Optional shouldRetry: (err: AxiosError<any, any>) => boolean
Type declaration
▸ (err): boolean
Function to invoke which determines if you should retry
Parameters
| Name | Type |
|---|---|
err |
AxiosError<any, any> |
Returns
boolean
Defined in
medusa-js/node_modules/retry-axios/dist/src/index.d.ts:39
statusCodesToRetry
• Optional statusCodesToRetry: number[][]
The HTTP response status codes that will automatically be retried. Defaults to: 100, 199], [429, 429], [500, 599
Defined in
medusa-js/node_modules/retry-axios/dist/src/index.d.ts:31