mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
25 lines
744 B
TypeScript
25 lines
744 B
TypeScript
// Type definitions for angular-http-auth 1.2.1
|
|
// Project: https://github.com/witoldsz/angular-http-auth
|
|
// Definitions by: vvakame <https://github.com/vvakame>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.3
|
|
|
|
/// <reference types="angular" />
|
|
|
|
import * as ng from 'angular';
|
|
|
|
declare module 'angular' {
|
|
export namespace httpAuth {
|
|
interface IAuthService {
|
|
loginConfirmed(data?: any, configUpdater?: Function): void;
|
|
loginCancelled(data?: any, reason?: any): void;
|
|
}
|
|
|
|
interface IHttpBuffer {
|
|
append(config: ng.IRequestConfig, deferred: { resolve(data: any): void; reject(data: any): void; }): void;
|
|
rejectAll(reason?: any): void;
|
|
retryAll(updater?: Function): void;
|
|
}
|
|
}
|
|
}
|