Siilwyn
Siilwyn
DDeno
Created by Siilwyn on 4/4/2024 in #help
DNT build type check fails on std/streams/buffer byobRequest
So using dnt to build a short script which uses node's child_process and web streams I'm getting type errors on Deno's std/streams/buffer code. Specifically:
std@0.220.1/streams/buffer.ts:32:59 - error TS2339: Property 'view' does not exist on type 'never'.
const view = new Uint8Array(controller.byobRequest!.view!.buffer);
~~~~
std@0.220.1/streams/buffer.ts:32:59 - error TS2339: Property 'view' does not exist on type 'never'.
const view = new Uint8Array(controller.byobRequest!.view!.buffer);
~~~~
Any ideas on workaround (apart from disabling the build type check) or a fix?
4 replies
DDeno
Created by Siilwyn on 3/18/2023 in #help
Does Deno package.json support use workspaces for module resolution?
Talking about this field: https://docs.npmjs.com/cli/v9/using-npm/workspaces If not could I somehow link to a local package in a project while it would resolve to the published version in deploy/publish context?
1 replies
DDeno
Created by Siilwyn on 10/4/2022 in #help
Import local typescript file so both Deno (LSP) and TS work?
Seems like Deno wants the import to end with .ts while TS wants no file extension. Is there any way to change either of them to accept the other?
48 replies