Skip to content

around<$Object>

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

Import:

import { around } from '@mnaoumov/obsidian-lib/components/monkey-around-component';

Signature:

function around($object: $Object, factories: Partial<FullFactories<$Object>>): Uninstaller

Parameters:

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.