##// END OF EJS Templates
Добавлена метка v1.0.0-rc1 для набора изменений 1e22cac2aaf4
Добавлена метка v1.0.0-rc1 для набора изменений 1e22cac2aaf4

File last commit:

r0:ab570232df7d default
r3:0b28c6ab359f default
Show More
errors.d.ts
44 lines | 1.1 KiB | video/mp2t | TypeScriptLexer
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> { }
}
}