##// END OF EJS Templates
Added tag v1.0.2 for changeset 641c326d4bb4
Added tag v1.0.2 for changeset 641c326d4bb4

File last commit:

r0:ab570232df7d default
r11:f715b707cb39 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> { }
}
}