surrogate
Version:
Object method hooks made easy
14 lines (13 loc) • 426 B
TypeScript
export declare const METHOD = "method";
export declare const EMPTY = "empty";
export declare const BOTH = "both";
export declare const POST = "post";
export declare const PRE = "pre";
export type WhichMethod = Which | typeof METHOD | typeof EMPTY;
export type Which = typeof PRE | typeof POST;
export type Whichever = Which | typeof BOTH;
export declare enum HookType {
PRE = "pre",
POST = "post",
BOTH = "both"
}