$ cnpm install @types/delegates
npm install --save @types/delegates
This package contains type definitions for delegates (https://github.com/tj/node-delegates).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/delegates.
declare class Delegate {
constructor(proto: object, target: string);
method(name: string): Delegate;
access(name: string): Delegate;
getter(name: string): Delegate;
setter(name: string): Delegate;
fluent(name: string): Delegate;
}
declare function Delegate(proto: object, target: string): Delegate;
export = Delegate;
These definitions were written by xingyuzhe.
Copyright 2013 - present © cnpmjs.org | Home |