mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-05 12:20:07 +08:00
angularjs: Support HttpParamSerializer interface
This commit is contained in:
1 parent
c4309e0e64
commit
5256422ee7
2 files changed
+15
No files matched your search
@@ -1110,3 +1110,10 @@ function doBootstrap(element: Element | JQuery, mode: string): ng.auto.IInjector
|
||||
debugInfoEnabled: false
|
||||
});
|
||||
}
|
||||
|
||||
function testIHttpParamSerializerJQLikeProvider() {
|
||||
let serializer: angular.IHttpParamSerializer;
|
||||
serializer({
|
||||
a: "b"
|
||||
});
|
||||
}
|
||||
Vendored
+8
@@ -1916,4 +1916,12 @@ declare namespace angular {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* $http params serializer that converts objects to strings
|
||||
* see https://docs.angularjs.org/api/ng/service/$httpParamSerializer
|
||||
*/
|
||||
interface IHttpParamSerializer {
|
||||
(obj: Object): string;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user