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