16 Commits
Author SHA1 Message Date
Romke van der Meulen 99e58db462 mark Response.error() and Response.redirect() as static (#8887)
Fixes #7777
2016-04-12 22:36:44 +09:00
vvakame 56295f5058 replace https://github.com/borisyankov/DefinitelyTyped to https://github.com/DefinitelyTyped/DefinitelyTyped 2016-03-17 00:55:26 +09:00
Evan Martin 273448e867 properly type string enums
The API is defined in terms of strings.
TypeScript enums' values are numbers and are not correct for
this API.  Drop the enums and use the new string union type
instead, as it was designed for just this use case.
2016-02-29 16:10:32 -08:00
pgonzal 91d963959f Add Headers.forEach() function, which was missing from whatwg-fetch.d.ts 2016-02-26 02:21:34 -08:00
vvakame 9027703c0b pass npm run all in new definition-tester 2016-02-10 00:16:03 +09:00
Alexander Rusakov c865ee8d59 fetch global variable 2015-11-19 16:10:13 +03:00
Masahiro Wakame 9ca83b1bc1 Merge pull request #6053 from subash-a/match-api-spec
Request definition and ResponseInit type corrections
2015-10-07 02:26:17 +09:00
giuseppelt 3796e5ed1b Whatwg-fetch: Allow body.json typed result
Useful to avoid assertions and keep a consistent code
2015-10-05 19:32:27 +02:00
Subhash Sharma d2fdfa835f changed defn of Request and ResponseInit
Request needs to extends Body class and ResponseInit needs to have
statusText and Headers as optional peoperties, corrected typo in test to "basic"
2015-09-29 13:11:01 +05:30
Masahiro Wakame 8474e3e64d Merge pull request #5998 from subash-a/corrected-fetch-typedef
corrected fetch args to support Request
2015-09-27 13:12:13 +09:00
Subhash Sharma 33b992dd01 corrected fetch args to support Request
Corrected fetch function to support Request Object as an alternate
argument as defined by MDN documentation for fetch API.
2015-09-24 23:24:17 +05:30
Alexander Rusakov 59a842d0ba whatwg-fetch uses strings and enums 2015-09-15 15:35:17 +03:00
jonathantyates 9f9214a5cf Update whatwg-fetch.d.ts
The json method when invoked, must return the result of running consume body with JSON. This implies that it must have the same return value as JSON.parse, which is any.
2015-05-11 11:29:10 -04:00
Ken Sheedlo a3a294fb4f Add support for headers as object in whatwg-fetch
The current typing supports passing headers through the Headers class,
but the spec also supports passing headers as an object mapping header
names to header values. See the [Github example](https://github.com/github/fetch#post-json).
2015-04-05 19:46:19 -07:00
ryan-codingintrigue 54d3f50685 Removed unnecessary reference to typescriptServices 2015-03-24 15:47:47 +00:00
ryan-codingintrigue 45979048d5 Renamed to whatwg-fetch 2015-03-21 06:56:38 +00:00