Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Headers type not available #1173

Closed
ry opened this issue Nov 8, 2018 · 0 comments
Closed

Headers type not available #1173

ry opened this issue Nov 8, 2018 · 0 comments
Milestone

Comments

@ry
Copy link
Member

ry commented Nov 8, 2018

Adding the following to js/headers_test.ts break it

test(function headerTypesAvailable() {
  function newHeaders(): Headers {
    return new Headers();
  }
  const headers = newHeaders();
  assert(headers instanceof Headers);
});

Results in the following error:

> ./out/debug/deno  js/headers_test.ts
Compiling /Users/rld/src/deno/js/headers_test.ts
/Users/rld/src/deno/js/headers_test.ts:176:26 - error TS2304: Cannot find name 'Headers'.

176   function newHeaders(): Headers {
                             ~~~~~~~
@ry ry added this to the v0.2 milestone Nov 8, 2018
@ry ry changed the title Header types not available Headers type not available Nov 8, 2018
@ry ry closed this as completed in #1175 Nov 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant