Skip to content

Commit 98c4427

Browse files
committed
docs: Fix returns values not being Refs
1 parent 4db0038 commit 98c4427

File tree

8 files changed

+20
-20
lines changed

8 files changed

+20
-20
lines changed

src/components/useClickAway/stories/useClickAway.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ useClickAway(
1414

1515
### Parameters
1616

17-
- `elRef: string` the element to check for click away events
18-
- `onClickAway: string` the callback to run when triggering a click away
19-
- `events: string` list of events to listen to, defaults to `['mousedown', 'touchstart']`
17+
- `elRef: Ref<null | Element>` the element to check for click away events
18+
- `onClickAway: Function` the callback to run when triggering a click away
19+
- `events: string[]` list of events to listen to, defaults to `['mousedown', 'touchstart']`
2020

2121
## Usage
2222

src/components/useHover/stories/useHover.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ useHover(elRef: Ref<null | Element>): Ref<boolean>
1414

1515
### Returns
1616

17-
- `isHovered: boolean` whether the element is currently hovered or not
17+
- `isHovered: Ref<boolean>` whether the element is currently hovered or not
1818

1919
## Usage
2020

src/components/useMedia/stories/useMedia.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ useMedia(
1818

1919
### Returns
2020

21-
- `isQueryMatching: boolean` whether the query matches or not
21+
- `isQueryMatching: Ref<boolean>` whether the query matches or not
2222

2323
## Usage
2424

src/components/useMouse/stories/useMouse.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ useMouse(): {
1313

1414
### Returns
1515

16-
- `docX: number` the mouse `x` position relative to the document
17-
- `docY: number` the mouse `y` position relative to the document
16+
- `docX: Ref<number>` the mouse `x` position relative to the document
17+
- `docY: Ref<number>` the mouse `y` position relative to the document
1818

1919
## Usage
2020

src/components/useMouseElement/stories/useMouseElement.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ useMouseElement(elRef: Ref<null | Element>): {
2424

2525
### Returns
2626

27-
- `docX: number` the mouse `x` position relative to the document
28-
- `docY: number` the mouse `y` position relative to the document
29-
- `elX: number` the mouse `x` position relative to the given element
30-
- `elY: number` the mouse `y` position relative to the given element
31-
- `elInfoX: number` the element `x` position
32-
- `elInfoY: number` the element `y` position
33-
- `elInfoW: number` the element `width` value
34-
- `elInfoH: number` the element `height` value
27+
- `docX: Ref<number>` the mouse `x` position relative to the document
28+
- `docY: Ref<number>` the mouse `y` position relative to the document
29+
- `elX: Ref<number>` the mouse `x` position relative to the given element
30+
- `elY: Ref<number>` the mouse `y` position relative to the given element
31+
- `elInfoX: Ref<number>` the element `x` position
32+
- `elInfoY: Ref<number>` the element `y` position
33+
- `elInfoW: Ref<number>` the element `width` value
34+
- `elInfoH: Ref<number>` the element `height` value
3535

3636
## Usage
3737

src/components/useSampleComponent/stories/useSampleComponent.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Vue function that...
1414

1515
### Returns
1616

17-
- `value: string` lorem ipsa
17+
- `value: Ref<string>` lorem ipsa
1818

1919
## Usage
2020

src/components/useTimeout/stories/useTimeout.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ useTimeout(
2323

2424
### Returns
2525

26-
- `isReady: boolean | null` the timer status
26+
- `isReady: Ref<boolean> | null` the timer status
2727
- `false` when the timer is executing
2828
- `true` when the timer is completed
2929
- `null` when the timer is cancelled
30-
- `isIdle: boolean` this value is `true` if the timer has ever been called, `false` otherwise
30+
- `isIdle: Ref<boolean>` this value is `true` if the timer has ever been called, `false` otherwise
3131
- `cancel: Function` the function used to cancel the timer
3232
- `start: Function` the function used for starting or resetting the timer
3333

src/components/useTimeoutFn/stories/useTimeoutFn.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ useTimeoutFn(
2525

2626
### Returns
2727

28-
- `isReady: boolean | null` the timer status
28+
- `isReady: Ref<boolean> | null` the timer status
2929
- `false` when the timer is executing
3030
- `true` when the timer is completed
3131
- `null` when the timer is cancelled
32-
- `isIdle: boolean` this value is `true` if the timer has ever been called, `false` otherwise
32+
- `isIdle: Ref<boolean>` this value is `true` if the timer has ever been called, `false` otherwise
3333
- `cancel: Function` the function used to cancel the timer
3434
- `start: Function` the function used for starting or resetting the timer
3535

0 commit comments

Comments
 (0)