DefinitelyTyped/types/angular-http-auth/index.d.ts
Leonard Thieu 1c3565933c :(
2017-06-13 13:00:42 -04:00

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;
}
}
}