UNPKG

surrogate

Version:

Object method hooks made easy

14 lines (13 loc) 496 B
import type { Surrogate, ShouldHandle } from '../../../interfaces'; import type { SurrogateProxy } from '../../handler'; export interface FetchRule extends ShouldHandle { returnableValue(): any; } export interface FetchRuleConstruct<T extends object> { new (proxy: SurrogateProxy<T>, target: T, event: string, receiver: Surrogate<T>): FetchRule; } export declare enum InternalMethods { EventManager = "getSurrogate", Dispose = "disposeSurrogate", Bypass = "bypassSurrogate" }