diff options
author | Kurt Mackey <mrkurt@gmail.com> | 2019-06-11 20:32:49 -0500 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-06-11 21:32:49 -0400 |
commit | 7bdeee8997bde0efe40bcec41c0706bdab58893b (patch) | |
tree | 4ff2e6e11b29f9bf387ba3812e16a3cfcaf8b1a8 /js/dom_types.ts | |
parent | 878d092df9cc89ad92e571e2422ffb1ed488dd0e (diff) |
makes global request type an interface (#2503)
Diffstat (limited to 'js/dom_types.ts')
-rw-r--r-- | js/dom_types.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/js/dom_types.ts b/js/dom_types.ts index 2f855aeaa..07f7d7898 100644 --- a/js/dom_types.ts +++ b/js/dom_types.ts @@ -444,6 +444,11 @@ export interface ResponseInit { statusText?: string; } +export interface RequestConstructor { + new (input: RequestInfo, init?: RequestInit): Request; + prototype: Request; +} + export interface Request extends Body { /** Returns the cache mode associated with request, which is a string * indicating how the the request will interact with the browser's cache when |