Skip to content

PostPatchHandlerParams<Obj, MethodName>

Parameters passed to a PostPatchHandlerFn callback.

Import:

import type { PostPatchHandlerParams } from 'obsidian-dev-utils/obsidian/components/monkey-around-component';

Signature:

export interface PostPatchHandlerParams<Obj extends object, MethodName extends MethodKeys<Obj>>

Properties

PropertyTypeDescription
originalMethodExtractFunction<Obj, MethodName>The original (unpatched) method. Call via originalFn.call(originalThis, ...originalArgs).
patchedMethodExtractFunction<Obj, MethodName>The patched method.

Links to this page: