Support stricter type for Deno 1.4
See original GitHub issueIt 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:
- Created 3 years ago
- Reactions:1
- Comments:8 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Great, looks like that one works well. Thanks for the fix. 👍
Cool, it looks like the fix is simple. To be future-compatible, all we have to do is to change the export.