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
| Property | Type | Description |
|---|---|---|
| originalMethod | ExtractFunction<$Object, MethodName> | The original (unpatched) method. Call via originalFn.call(originalThis, ...originalArgs). |
| patchedMethod | ExtractFunction<$Object, MethodName> | The patched method. |
Links to this page: