Merge pull request #3016 from zerobuzz/make-http-headers-fun-arg-optional

Relax headers function type in http promise callbacks.
This commit is contained in:
Masahiro Wakame
2014-10-27 11:11:48 +09:00
+1 -1
View File
@@ -1201,7 +1201,7 @@ declare module ng {
}
interface IHttpPromiseCallback<T> {
(data: T, status: number, headers: (headerName: string) => string, config: IRequestConfig): void;
(data: T, status: number, headers: (headerName?: string) => string, config: IRequestConfig): void;
}
interface IHttpPromiseCallbackArg<T> {