Skip to content

Commit 3b2c058

Browse files
authored
fix: useTimeout文档中API处的delay属性的类型标注 (#2439)
1 parent 43a016b commit 3b2c058

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/hooks/src/useTimeout/index.en-US.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ A hook that handles the `setTimeout` timer function.
1919
```typescript
2020
useTimeout(
2121
fn: () => void,
22-
delay?: number | null
22+
delay?: number | undefined
2323
): fn: () => void;
2424
```
2525

packages/hooks/src/useTimeout/index.zh-CN.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ nav:
1919
```typescript
2020
useTimeout(
2121
fn: () => void,
22-
delay?: number | null
22+
delay?: number | undefined
2323
): fn: () => void;
2424
```
2525

0 commit comments

Comments
 (0)