--- category: Reactivity --- # reactifyObject Apply `reactify` to an object ## Usage ```ts import { reactifyObject } from '@vueuse/core'; const reactifiedConsole = reactifyObject(console); const a = ref('42'); reactifiedConsole.log(a); // no longer need `.value` ``` ## Type Declarations ```ts export type ReactifyNested = { [K in Keys]: T[K] extends AnyFn ? Reactified : T[K]; }; export type ReactifyObjectReturn< T, Keys extends keyof T, S extends boolean = true, > = ReactifyNested; export interface ReactifyObjectOptions extends ReactifyOptions { /** * Includes names from Object.getOwnPropertyNames * * @default true */ includeOwnProperties?: boolean; } /** * Apply `reactify` to an object * * @__NO_SIDE_EFFECTS__ */ export declare function reactifyObject( obj: T, keys?: (keyof T)[], ): ReactifyObjectReturn; export declare function reactifyObject( obj: T, options?: ReactifyObjectOptions, ): ReactifyObjectReturn; ```