mirror of https://github.com/vuejs/core.git
Merge e44c5d92b5
into ba391f5fdf
This commit is contained in:
commit
21e2d5b67c
|
@ -186,14 +186,14 @@ export class ComputedRefImpl<T = any> implements Subscriber {
|
|||
* @param debugOptions - For debugging. See {@link https://vuejs.org/guide/extras/reactivity-in-depth.html#computed-debugging}.
|
||||
* @see {@link https://vuejs.org/api/reactivity-core.html#computed}
|
||||
*/
|
||||
export function computed<T>(
|
||||
getter: ComputedGetter<T>,
|
||||
debugOptions?: DebuggerOptions,
|
||||
): ComputedRef<T>
|
||||
export function computed<T, S = T>(
|
||||
options: WritableComputedOptions<T, S>,
|
||||
debugOptions?: DebuggerOptions,
|
||||
): WritableComputedRef<T, S>
|
||||
export function computed<T>(
|
||||
getter: ComputedGetter<T>,
|
||||
debugOptions?: DebuggerOptions,
|
||||
): ComputedRef<T>
|
||||
export function computed<T>(
|
||||
getterOrOptions: ComputedGetter<T> | WritableComputedOptions<T>,
|
||||
debugOptions?: DebuggerOptions,
|
||||
|
|
Loading…
Reference in New Issue