Skip to content

Commit 7278d35

Browse files
authored
docs(tsdoc): remove extra () in link tag (#13086)
1 parent de7959e commit 7278d35

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

packages/reactivity/src/reactive.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@ export declare const ShallowReactiveMarker: unique symbol
108108
export type ShallowReactive<T> = T & { [ShallowReactiveMarker]?: true }
109109

110110
/**
111-
* Shallow version of {@link reactive()}.
111+
* Shallow version of {@link reactive}.
112112
*
113-
* Unlike {@link reactive()}, there is no deep conversion: only root-level
113+
* Unlike {@link reactive}, there is no deep conversion: only root-level
114114
* properties are reactive for a shallow reactive object. Property values are
115115
* stored and exposed as-is - this also means properties with ref values will
116116
* not be automatically unwrapped.
@@ -178,7 +178,7 @@ export type DeepReadonly<T> = T extends Builtin
178178
* the original.
179179
*
180180
* A readonly proxy is deep: any nested property accessed will be readonly as
181-
* well. It also has the same ref-unwrapping behavior as {@link reactive()},
181+
* well. It also has the same ref-unwrapping behavior as {@link reactive},
182182
* except the unwrapped values will also be made readonly.
183183
*
184184
* @example
@@ -215,9 +215,9 @@ export function readonly<T extends object>(
215215
}
216216

217217
/**
218-
* Shallow version of {@link readonly()}.
218+
* Shallow version of {@link readonly}.
219219
*
220-
* Unlike {@link readonly()}, there is no deep conversion: only root-level
220+
* Unlike {@link readonly}, there is no deep conversion: only root-level
221221
* properties are made readonly. Property values are stored and exposed as-is -
222222
* this also means properties with ref values will not be automatically
223223
* unwrapped.
@@ -298,8 +298,8 @@ function createReactiveObject(
298298
}
299299

300300
/**
301-
* Checks if an object is a proxy created by {@link reactive()} or
302-
* {@link shallowReactive()} (or {@link ref()} in some cases).
301+
* Checks if an object is a proxy created by {@link reactive} or
302+
* {@link shallowReactive} (or {@link ref} in some cases).
303303
*
304304
* @example
305305
* ```js
@@ -327,7 +327,7 @@ export function isReactive(value: unknown): boolean {
327327
* readonly object can change, but they can't be assigned directly via the
328328
* passed object.
329329
*
330-
* The proxies created by {@link readonly()} and {@link shallowReadonly()} are
330+
* The proxies created by {@link readonly} and {@link shallowReadonly} are
331331
* both considered readonly, as is a computed ref without a set function.
332332
*
333333
* @param value - The value to check.
@@ -343,7 +343,7 @@ export function isShallow(value: unknown): boolean {
343343

344344
/**
345345
* Checks if an object is a proxy created by {@link reactive},
346-
* {@link readonly}, {@link shallowReactive} or {@link shallowReadonly()}.
346+
* {@link readonly}, {@link shallowReactive} or {@link shallowReadonly}.
347347
*
348348
* @param value - The value to check.
349349
* @see {@link https://vuejs.org/api/reactivity-utilities.html#isproxy}
@@ -356,8 +356,8 @@ export function isProxy(value: any): boolean {
356356
* Returns the raw, original object of a Vue-created proxy.
357357
*
358358
* `toRaw()` can return the original object from proxies created by
359-
* {@link reactive()}, {@link readonly()}, {@link shallowReactive()} or
360-
* {@link shallowReadonly()}.
359+
* {@link reactive}, {@link readonly}, {@link shallowReactive} or
360+
* {@link shallowReadonly}.
361361
*
362362
* This is an escape hatch that can be used to temporarily read without
363363
* incurring proxy access / tracking overhead or write without triggering
@@ -397,7 +397,7 @@ export type Raw<T> = T & { [RawSymbol]?: true }
397397
* ```
398398
*
399399
* **Warning:** `markRaw()` together with the shallow APIs such as
400-
* {@link shallowReactive()} allow you to selectively opt-out of the default
400+
* {@link shallowReactive} allow you to selectively opt-out of the default
401401
* deep reactive/readonly conversion and embed raw, non-proxied objects in your
402402
* state graph.
403403
*

packages/reactivity/src/ref.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export type ShallowRef<T = any, S = T> = Ref<T, S> & {
6767
}
6868

6969
/**
70-
* Shallow version of {@link ref()}.
70+
* Shallow version of {@link ref}.
7171
*
7272
* @example
7373
* ```js
@@ -229,7 +229,7 @@ export function unref<T>(ref: MaybeRef<T> | ComputedRef<T>): T {
229229

230230
/**
231231
* Normalizes values / refs / getters to values.
232-
* This is similar to {@link unref()}, except that it also normalizes getters.
232+
* This is similar to {@link unref}, except that it also normalizes getters.
233233
* If the argument is a getter, it will be invoked and its return value will
234234
* be returned.
235235
*
@@ -331,7 +331,7 @@ export type ToRefs<T = any> = {
331331
/**
332332
* Converts a reactive object to a plain object where each property of the
333333
* resulting object is a ref pointing to the corresponding property of the
334-
* original object. Each individual ref is created using {@link toRef()}.
334+
* original object. Each individual ref is created using {@link toRef}.
335335
*
336336
* @param object - Reactive object to be made into an object of linked refs.
337337
* @see {@link https://vuejs.org/api/reactivity-utilities.html#torefs}

0 commit comments

Comments
 (0)