Skip to content

Commit 7b40c1e

Browse files
committed
docs(*): update Ref defined links
1 parent 1cc63d4 commit 7b40c1e

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

docs/useCounter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,5 @@ function useCounter(
6666

6767
### `ReturnValue`
6868

69-
0. [`Ref<number>`](https://github.com/vuejs/vue-function-api/blob/1d532fe684e2343973ae46fc3ef93e497e6514b1/src/wrappers/index.ts#L5-L7)
69+
0. [`Ref<number>`](https://github.com/vuejs/composition-api/blob/a7a68bda5d32139c6cf05b45e385cf8d4ce86707/src/reactivity/ref.ts#L8-L10)
7070
1. `Actions`

docs/useGetters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,6 @@ function useGetters(
4646
```
4747

4848
> The usage of the `useGetters` hook is exactly the same as the usage of [`mapGetters`](https://vuex.vuejs.org/api/#mapgetters) (the same parameters)
49-
> The only difference is that the return value of `useGetters` is the [`Ref<any>`](https://github.com/vuejs/vue-function-api/blob/1d532fe684e2343973ae46fc3ef93e497e6514b1/src/wrappers/index.ts#L5-L7) dictionary. For each item in the dictionary, you need to use `.value` to get its actual value.
49+
> The only difference is that the return value of `useGetters` is the [`Ref<any>`](https://github.com/vuejs/composition-api/blob/a7a68bda5d32139c6cf05b45e385cf8d4ce86707/src/reactivity/ref.ts#L8-L10) dictionary. For each item in the dictionary, you need to use `.value` to get its actual value.
5050
5151
_Please refer to the documentation of [`mapGetters`](https://vuex.vuejs.org/api/#mapgetters) for details._

docs/usePrevious.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ function usePrevious<T>(state: Ref<T> | (() => T)): Ref<T>;
4545

4646
`props` or `Ref<any>`
4747

48-
- Type: [`Ref<T> | (() => T)`](https://github.com/vuejs/vue-function-api/blob/1d532fe684e2343973ae46fc3ef93e497e6514b1/src/wrappers/index.ts#L5-L7)
48+
- Type: [`Ref<T> | (() => T)`](https://github.com/vuejs/composition-api/blob/a7a68bda5d32139c6cf05b45e385cf8d4ce86707/src/reactivity/ref.ts#L8-L10)
4949

5050
### `ReturnValue`
5151

52-
- [`Ref<T>`](https://github.com/vuejs/vue-function-api/blob/1d532fe684e2343973ae46fc3ef93e497e6514b1/src/wrappers/index.ts#L5-L7)
52+
- [`Ref<T>`](https://github.com/vuejs/composition-api/blob/a7a68bda5d32139c6cf05b45e385cf8d4ce86707/src/reactivity/ref.ts#L8-L10)
5353

5454
_[`T`](https://www.typescriptlang.org/docs/handbook/generics.html) depends on your `arguments` type_

docs/useState.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@ function useState(
4747
```
4848

4949
> The usage of the `useState` hook is exactly the same as the usage of [`mapState`](https://vuex.vuejs.org/api/#mapstate) (the same parameters)
50-
> The only difference is that the return value of `useState` is the [`Ref<any>`](https://github.com/vuejs/vue-function-api/blob/1d532fe684e2343973ae46fc3ef93e497e6514b1/src/wrappers/index.ts#L5-L7) dictionary. For each item in the dictionary, you need to use `.value` to get its actual value.
50+
> The only difference is that the return value of `useState` is the [`Ref<any>`](https://github.com/vuejs/composition-api/blob/a7a68bda5d32139c6cf05b45e385cf8d4ce86707/src/reactivity/ref.ts#L8-L10) dictionary. For each item in the dictionary, you need to use `.value` to get its actual value.
5151
5252
_Please refer to the documentation of [`mapState`](https://vuex.vuejs.org/api/#mapstate) for details._

docs/useWindowSize.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function useWindowSize(): {
3939

4040
### `ReturnValue`
4141

42-
- `width`: [`Ref<number>`](https://github.com/vuejs/vue-function-api/blob/1d532fe684e2343973ae46fc3ef93e497e6514b1/src/wrappers/index.ts#L5-L7)
43-
- `height`: [`Ref<number>`](https://github.com/vuejs/vue-function-api/blob/1d532fe684e2343973ae46fc3ef93e497e6514b1/src/wrappers/index.ts#L5-L7)
44-
- `widthPixel`: [`Ref<string>`](https://github.com/vuejs/vue-function-api/blob/1d532fe684e2343973ae46fc3ef93e497e6514b1/src/wrappers/index.ts#L5-L7)
45-
- `heightPixel`: [`Ref<string>`](https://github.com/vuejs/vue-function-api/blob/1d532fe684e2343973ae46fc3ef93e497e6514b1/src/wrappers/index.ts#L5-L7)
42+
- `width`: [`Ref<number>`](https://github.com/vuejs/composition-api/blob/a7a68bda5d32139c6cf05b45e385cf8d4ce86707/src/reactivity/ref.ts#L8-L10)
43+
- `height`: [`Ref<number>`](https://github.com/vuejs/composition-api/blob/a7a68bda5d32139c6cf05b45e385cf8d4ce86707/src/reactivity/ref.ts#L8-L10)
44+
- `widthPixel`: [`Ref<string>`](https://github.com/vuejs/composition-api/blob/a7a68bda5d32139c6cf05b45e385cf8d4ce86707/src/reactivity/ref.ts#L8-L10)
45+
- `heightPixel`: [`Ref<string>`](https://github.com/vuejs/composition-api/blob/a7a68bda5d32139c6cf05b45e385cf8d4ce86707/src/reactivity/ref.ts#L8-L10)

0 commit comments

Comments
 (0)