This commit is contained in:
oitsjustjose 2017-02-26 17:06:42 -05:00
commit 6b60015c02
9588 changed files with 1149251 additions and 49 deletions

35
node_modules/make-error/index.d.ts generated vendored Normal file
View file

@ -0,0 +1,35 @@
/**
* Create a new error constructor instance.
*/
declare function makeError(name: string): makeError.Constructor<makeError.BaseError>;
/**
* Set the constructor prototype to `BaseError`.
*/
declare function makeError<T extends Error>(super_: { new (...args: any[]): T }): makeError.Constructor<T & makeError.BaseError>;
/**
* Create a specialized error instance.
*/
declare function makeError<T extends Error>(name: string | Function, super_: { new (...args: any[]): T }): makeError.Constructor<T>;
declare module makeError {
/**
* Use with ES6 inheritance.
*/
export class BaseError implements Error {
message: string;
name: string;
stack: string;
constructor(message: string);
}
export interface Constructor <T> {
new (message: string): T
super_: any
prototype: T
}
}
export = makeError;