mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-27 12:21:19 +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:
commit
3ec4b591c9
1 file changed
+1
-1
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