DenoDDeno
Powered by
SiilwynS
Denoβ€’2y agoβ€’
3 replies
Siilwyn

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?
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Importing Buffer Type
AkuzeAAkuze / help
2y ago
`dnt` incompatible with `addEventListener`?
abiAabi / help
3y ago