We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If I run this simple script:
async function run() { await Deno.connect({path: "blah", transport:"unix"}); } run();
I get this TS compilation error:
error: TS2322 [ERROR]: Type '"unix"' is not assignable to type '"tcp" | undefined'. await Deno.connect({path: "blah", transport:"unix"});
Yet my code is a copy of the example in docs: https://doc.deno.land/https/github.com/denoland/deno/releases/latest/download/lib.deno.d.ts#Deno.connect
I get a similar result when doing Deno.listen with same parameters (although listen docs don't even mention possibility of unix transport).
Deno.listen
unix
If I add //@ts-ignore my code compiles and runs fine.
//@ts-ignore
Thanks.
The text was updated successfully, but these errors were encountered:
Deno.connect with the unix transport is considered unstable, you shouldn't be able to access it without the --unstable flag.
Deno.connect
--unstable
Sorry, something went wrong.
OK, good to know, thanks. Perhaps the docs should indicate this?
@teleclimber Indeed the docs should indicate this. Thanks for the report - it helps.
No branches or pull requests
If I run this simple script:
I get this TS compilation error:
Yet my code is a copy of the example in docs: https://doc.deno.land/https/github.com/denoland/deno/releases/latest/download/lib.deno.d.ts#Deno.connect
I get a similar result when doing
Deno.listen
with same parameters (although listen docs don't even mention possibility ofunix
transport).If I add
//@ts-ignore
my code compiles and runs fine.Thanks.
The text was updated successfully, but these errors were encountered: