Skip to content

around<Obj>

Applies a patch to the object. Better strongly-typed version of monkey-around.

Import:

import { around } from 'obsidian-dev-utils/obsidian/components/monkey-around-component';

Signature:

function around(obj: Obj, factories: Partial<FullFactories<Obj>>): Uninstaller

Parameters:

ParameterTypeDescription
objObjThe object to patch.
factoriesPartial<FullFactories<Obj>>The factories to apply to the object.

Returns: Uninstaller — The uninstaller that removes the patch when called.