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>>): UninstallerParameters:
| Parameter | Type | Description |
|---|---|---|
obj | Obj | The object to patch. |
factories | Partial<FullFactories<Obj>> | The factories to apply to the object. |
Returns: Uninstaller — The uninstaller that removes the patch when called.