mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
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:
Vendored
+1
-1
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user