mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-03-29 08:58:23 +08:00
angularjs: Support HttpParamSerializer interface
This commit is contained in:
@@ -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"
|
||||
});
|
||||
}
|
||||
|
||||
8
angularjs/angular.d.ts
vendored
8
angularjs/angular.d.ts
vendored
@@ -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