surrogate
Version:
Object method hooks made easy
6 lines (5 loc) • 487 B
TypeScript
import { Which, Whichever } from '../which';
import type { Action, SurrogateDelegateOptions } from './interfaces';
export declare const manageDecorator: <T extends object>(type: Which, options: SurrogateDelegateOptions<T>) => (target: T, event: Action<T>) => void;
export declare const determineWhich: (type: Whichever) => Which[];
export declare const manageAsyncDecorator: <T extends object>(type: Which, options: SurrogateDelegateOptions<T>) => (target: T, event: Action<T>) => void;