declare namespace dojo { namespace errors { /* dojo/errors/CancelError */ interface CancelError extends Error { name: string; dojoType: string; } interface CancelErrorConstructor extends ErrorCtor { } /* dojo/errors/create */ interface ErrorCtor { new (message?: string): E; prototype: E; } interface Create { (name: string, ctor: GenericConstructor, base: E, props: P): ErrorCtor; (name: string, ctor: GenericConstructor, base: E): ErrorCtor; (name: string, ctor: GenericConstructor): ErrorCtor; (name: string): ErrorCtor; } /* dojo/errors/RequestError */ interface RequestError extends Error { response: request.Response; } interface RequestErrorConstructor extends ErrorCtor { } /* dojo/errors/RequestTimeoutError */ interface RequestTimeoutError extends RequestError { dojoType: string; } interface RequestTimeoutErrorConstructor extends ErrorCtor { } } }