import { computed as _computed, ComputedRef, WritableComputedOptions, WritableComputedRef, ComputedGetter } from '@vue/reactivity' import { recordInstanceBoundEffect } from './component' export function computed(getter: ComputedGetter): ComputedRef export function computed( options: WritableComputedOptions ): WritableComputedRef export function computed( getterOrOptions: ComputedGetter | WritableComputedOptions ) { const c = _computed(getterOrOptions as any) recordInstanceBoundEffect(c.effect) return c }