Skip to content

PostPatchHandlerParams<$Object, MethodName>

Parameters passed to a PostPatchHandlerFunction callback.

Import:

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

Signature:

export interface PostPatchHandlerParams<$Object extends object, MethodName extends MethodKeys<$Object>>

Properties

PropertyTypeDescription
originalMethodExtractFunction<$Object, MethodName>The original (unpatched) method. Call via originalFn.call(originalThis, ...originalArgs).

Links to this page: