mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
update angular.d.ts
This commit is contained in:
@@ -250,6 +250,12 @@ httpFoo.then((x) => {
|
||||
x.toFixed();
|
||||
});
|
||||
|
||||
httpFoo.success((data, status, headers, config) => {
|
||||
var h = headers("test");
|
||||
h.charAt(0);
|
||||
var hs = headers();
|
||||
hs.concat(["test"]);
|
||||
});
|
||||
|
||||
function test_angular_forEach() {
|
||||
var values: { [key: string]: string } = { name: 'misko', gender: 'male' };
|
||||
|
||||
7
angularjs/angular.d.ts
vendored
7
angularjs/angular.d.ts
vendored
@@ -1200,8 +1200,13 @@ declare module ng {
|
||||
url: string;
|
||||
}
|
||||
|
||||
interface IHttpHeadersGetter {
|
||||
(): { [name: string]: string; };
|
||||
(headerName: string): string;
|
||||
}
|
||||
|
||||
interface IHttpPromiseCallback<T> {
|
||||
(data: T, status: number, headers: (headerName?: string) => string, config: IRequestConfig): void;
|
||||
(data: T, status: number, headers: IHttpHeadersGetter, config: IRequestConfig): void;
|
||||
}
|
||||
|
||||
interface IHttpPromiseCallbackArg<T> {
|
||||
|
||||
Reference in New Issue
Block a user