@beenotung/tslib
Version:
utils library in Typescript
14 lines (13 loc) • 401 B
TypeScript
import { Obj, Type } from './lang';
/**
* Created by beenotung on 6/21/17.
*/
/**
* fix 'this' scope issue of the member methods when passed to other functions
* @return original object
* */
export declare function bindMethods<A extends Obj<Function | any>>(o: A): A;
/**
* cast object to class with class methods
* */
export declare function withMethod<A extends object>(c: Type<A>, o: A): A;