Skip to content

Commit

Permalink
fix: useTimeout文档中API处的delay属性的类型标注 (#2439)
Browse files Browse the repository at this point in the history
  • Loading branch information
OweQian committed Jan 28, 2024
1 parent 43a016b commit 3b2c058
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/hooks/src/useTimeout/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ A hook that handles the `setTimeout` timer function.
```typescript
useTimeout(
fn: () => void,
delay?: number | null
delay?: number | undefined
): fn: () => void;
```

Expand Down
2 changes: 1 addition & 1 deletion packages/hooks/src/useTimeout/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ nav:
```typescript
useTimeout(
fn: () => void,
delay?: number | null
delay?: number | undefined
): fn: () => void;
```

Expand Down

0 comments on commit 3b2c058

Please sign in to comment.