Skip to content

Commit be4bcb8

Browse files
committed
chore: fix typo
1 parent d5123ec commit be4bcb8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"index.js"
2828
],
2929
"scripts": {
30-
"start": "concurrently \"tsc --emitDeclarationOnly -w\" \"cross-env TARGET=es rollup -c -w\"",
30+
"start": "concurrently \"tsc --emitDeclarationOnly -w\" \"cross-env rollup -c -w\"",
3131
"build": "rimraf dist typings && tsc --emitDeclarationOnly && rollup -c",
3232
"lint": "prettier --write --parser typescript \"{src,test,test-dts}/**/*.ts?(x)\" && prettier --write \"{src,test}/**/*.js\"",
3333
"test": "yarn test-dts && yarn test-unit",

src/apis/watch.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,11 +294,11 @@ function createWatcher(
294294
}
295295
let callback = createScheduler(applyCb)
296296
if (options.immediate) {
297-
const originalCallbck = callback
297+
const originalCallback = callback
298298
// `shiftCallback` is used to handle the first sync effect run.
299299
// The subsequent callbacks will redirect to `callback`.
300300
let shiftCallback = (n: any, o: any) => {
301-
shiftCallback = originalCallbck
301+
shiftCallback = originalCallback
302302
applyCb(n, o)
303303
}
304304
callback = (n: any, o: any) => {

0 commit comments

Comments
 (0)