Skip to content

Commit 129fbb7

Browse files
committed
chore: address ai review feedback
1 parent 558995f commit 129fbb7

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"scripts": {
2929
"build": "npm run docs:build",
3030
"compile": "father build",
31-
"deploy": "npm run docs:build && npm run docs:deploy",
31+
"deploy": "npm run gh-pages",
3232
"docs:build": "dumi build",
3333
"docs:deploy": "gh-pages -d docs-dist",
3434
"gh-pages": "GH_PAGES=1 npm run docs:build && npm run docs:deploy",

src/useMutateObserver.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@ const defaultOptions: MutationObserverInit = {
88
};
99

1010
const useMutateObserver = (
11-
nodeOrList: HTMLElement | HTMLElement[] | SVGElement | SVGElement[],
11+
nodeOrList:
12+
| HTMLElement
13+
| HTMLElement[]
14+
| SVGElement
15+
| SVGElement[]
16+
| null
17+
| undefined,
1218
callback: MutationCallback,
1319
options: MutationObserverInit = defaultOptions,
1420
) => {

0 commit comments

Comments
 (0)