Skip to content

Commit 1afcdd4

Browse files
authored
Merge pull request #4286 from CodeByZack/add-missing-quote
add missing quote
2 parents 7aa85a0 + a3eaf17 commit 1afcdd4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/api/autoBatchEnhancer.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Any action that is tagged with `action.meta[SHOULD_AUTOBATCH] = true` will be tr
9999

100100
- `{type: 'raf'}`: queues using `requestAnimationFrame` (default)
101101
- `{type: 'tick'}`: queues using `queueMicrotask`
102-
- `{type: 'timer, timeout: number}`: queues using `setTimeout`
102+
- `{type: 'timer', timeout: number}`: queues using `setTimeout`
103103
- `{type: 'callback', queueNotification: (notify: () => void) => void}`: lets you provide your own callback, such as a debounced or throttled function
104104

105105
The default behavior is to queue the notifications using `requestAnimationFrame`.

packages/toolkit/src/autoBatchEnhancer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export type AutoBatchOptions =
4444
* By default, it will queue a notification for the end of the event loop tick.
4545
* However, you can pass several other options to configure the behavior:
4646
* - `{type: 'tick'}`: queues using `queueMicrotask`
47-
* - `{type: 'timer, timeout: number}`: queues using `setTimeout`
47+
* - `{type: 'timer', timeout: number}`: queues using `setTimeout`
4848
* - `{type: 'raf'}`: queues using `requestAnimationFrame` (default)
4949
* - `{type: 'callback', queueNotification: (notify: () => void) => void}`: lets you provide your own callback
5050
*

0 commit comments

Comments
 (0)