DefinitelyTyped/types/d/auto-bind.d.ts
2018-12-17 21:55:21 +01:00

14 lines
301 B
TypeScript

export = autoBind;
declare function autoBind(
obj: { [key: string]: PropertyDescriptor },
options?: autoBind.Options
): PropertyDescriptorMap;
declare namespace autoBind {
interface Options {
overwriteDefinition?: boolean;
resolveContext?: (context: any) => any;
}
}