PatchHandlerFn<Obj, MethodName>
A patch handler function that intercepts calls to a method on an object.
Import:
import type { PatchHandlerFn } from 'obsidian-dev-utils/obsidian/components/monkey-around-component';Signature:
export type PatchHandlerFn<Obj extends object, MethodName extends MethodKeys<Obj>>Signature:
type PatchHandlerFn<Obj, MethodName> = ( params: PatchHandlerParams<Obj, MethodName>) => ReturnType<ExtractFunction<Obj, MethodName>>Type: ( params: PatchHandlerParams<Obj, MethodName> ) => ReturnType<ExtractFunction<Obj, MethodName>>
Links to this page: