Skip to content

Commit

Permalink
fix: useTimeout文档中API处的delay属性的类型标注 (alibaba#2439)
Browse files Browse the repository at this point in the history
  • Loading branch information
OweQian authored and Wait committed Feb 26, 2024
1 parent b506361 commit d835455
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 d835455

Please sign in to comment.