Skip to content

Commit f7983f9

Browse files
authored
docs(retry-plugin): fix typo and clarify default retryDelay (#3362)
1 parent 3daf3cc commit f7983f9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

apps/website-new/docs/en/plugin/plugins/retry-plugin.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ type ScriptWithRetryOptions = {
114114

115115
### Properties
116116

117-
- **script**: `ScriptWithRetryOptions` (optional)
118-
- used to configure the retry options for fetch type resources.
117+
- **fetch**: `FetchWithRetryOptions` (optional)
118+
- `FetchWithRetryOptions` is the type used to configure the retry options for fetch type resources.
119119

120120
- **script**: `ScriptWithRetryOptions` (optional)
121121
- `ScriptWithRetryOptions` is the type used to configure the retry options for script type resources.
@@ -140,14 +140,14 @@ type ScriptWithRetryOptions = {
140140
- **retryDelay**:
141141
- `number`
142142
- optional
143-
- The delay time between each retry (in milliseconds).
143+
- The delay time between each retry (in milliseconds), default is 1000 (1 second).
144144

145145
- **fallback**:
146146
- `() => string | ((url: string | URL | globalThis.Request) => string)`
147147
- optional
148148
- A function, which can optionally receive the failed URL, that returns a fallback string to be used if all retries fail. This function is called when all retry attempts have failed.
149149

150-
### ScriptWithRetryOptions 类型说明
150+
### ScriptWithRetryOptions Description
151151

152152
- **retryTimes**:
153153
- `number`
@@ -157,7 +157,7 @@ type ScriptWithRetryOptions = {
157157
- **retryDelay**:
158158
- `number`
159159
- optional
160-
- The delay time between each retry (in milliseconds).
160+
- The delay time between each retry (in milliseconds), default is 1000 (1 second).
161161

162162
- **moduleName**:
163163
- `Array<string>`
@@ -191,7 +191,7 @@ init({
191191
retryTimes: 3,
192192
// the retry delay
193193
retryDelay: 1000,
194-
// the module name list that need to be retried, defualt behavior is to retry all modules
194+
// the module name list that need to be retried, default behavior is to retry all modules
195195
moduleName: ['remote1'],
196196
// the callback function that will be called after all retried failed
197197
cb: (resolve, error) => {

0 commit comments

Comments
 (0)