Skip to content

PostPatchHandlerParams<$Object, MethodName>

Parameters passed to a PostPatchHandlerFunction callback.

Import:

import type { PostPatchHandlerParams } from 'obsidian-dev-utils/obsidian/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).
patchedMethodExtractFunction<$Object, MethodName>The patched method.

Links to this page: