surrogate
Version:
Object method hooks made easy
13 lines (12 loc) • 441 B
TypeScript
export declare class MethodIdentifier<T extends object> {
private instance;
constructor(instance: T);
doesNotIncludeEvent(event: string, methods: string[]): boolean;
doesIncludeEvent(event: string): boolean;
private matchEvent;
getApplicableMethods(event: string, methods: string[]): string[];
instanceMethodNames(): string[];
private isNotProperty;
private isNotAccessor;
private getPropertyNames;
}