diff --git a/packages/reactivity/src/computed.ts b/packages/reactivity/src/computed.ts index ea798e201..49515b01b 100644 --- a/packages/reactivity/src/computed.ts +++ b/packages/reactivity/src/computed.ts @@ -186,14 +186,14 @@ export class ComputedRefImpl 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( - getter: ComputedGetter, - debugOptions?: DebuggerOptions, -): ComputedRef export function computed( options: WritableComputedOptions, debugOptions?: DebuggerOptions, ): WritableComputedRef +export function computed( + getter: ComputedGetter, + debugOptions?: DebuggerOptions, +): ComputedRef export function computed( getterOrOptions: ComputedGetter | WritableComputedOptions, debugOptions?: DebuggerOptions,