##// END OF EJS Templates
some fixes after testing
some fixes after testing

File last commit:

r0:ab570232df7d default
r5:af2703f9110e default
Show More
errors.d.ts
44 lines | 1.1 KiB | video/mp2t | TypeScriptLexer
cin
Initial commit, project structure.
r0 declare namespace dojo {
namespace errors {
/* dojo/errors/CancelError */
interface CancelError extends Error {
name: string;
dojoType: string;
}
interface CancelErrorConstructor extends ErrorCtor<CancelError> { }
/* dojo/errors/create */
interface ErrorCtor<E> {
new (message?: string): E;
prototype: E;
}
interface Create {
<E extends Error, P extends Object>(name: string, ctor: GenericConstructor<any>, base: E, props: P): ErrorCtor<E & P>;
<E extends Error, P extends Object>(name: string, ctor: GenericConstructor<any>, base: E): ErrorCtor<E>;
<E extends Error, P extends Object>(name: string, ctor: GenericConstructor<any>): ErrorCtor<E>;
<E extends Error, P extends Object>(name: string): ErrorCtor<E>;
}
/* dojo/errors/RequestError */
interface RequestError extends Error {
response: request.Response<any>;
}
interface RequestErrorConstructor extends ErrorCtor<RequestError> { }
/* dojo/errors/RequestTimeoutError */
interface RequestTimeoutError extends RequestError {
dojoType: string;
}
interface RequestTimeoutErrorConstructor extends ErrorCtor<RequestTimeoutError> { }
}
}