question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support stricter type for Deno 1.4

See original GitHub issue

It looks like Deno 1.4 is stricter with typing.

The fix is to change WebSocket to be exported as a type at https://github.com/ryo-ma/deno-websocket/blob/master/deps.ts .

export type {
  WebSocket,
} from "https://deno.land/std@0.65.0/ws/mod.ts";

More specifically, it looks like the issue originates from https://deno.land/posts/v1.4#stricter-type-checks-in-code--unstablecode (--unstable flag).

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
bebrawcommented, Sep 20, 2020

Great, looks like that one works well. Thanks for the fix. 👍

1reaction
bebrawcommented, Sep 20, 2020

Cool, it looks like the fix is simple. To be future-compatible, all we have to do is to change the export.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Deno 1.4 Release Notes
Deno 1.4 adds support for the web standard WebSocket API, deno run --watch, and integrated test ... Stricter type checks in --unstable.
Read more >
Using TypeScript | Manual - Deno
Using TypeScript. Deno supports both JavaScript and TypeScript as first class languages at runtime. This means it requires fully qualified module names, ...
Read more >
deno/Releases.md at main - GitHub
A modern runtime for JavaScript and TypeScript. Contribute to denoland/deno development by creating an account on GitHub.
Read more >
Deno 1.4 upgrade comes with WebSocket API - devs-tools
Stricter type checks in --unstable. · The deno info tool for dependency analysis has been overhauled. · CSS styling is now supported for...
Read more >
Documentation - TypeScript 1.4
Union types are a powerful way to express a value that can be one of several types ... The other new ES6 declaration...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found