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);
                                                    ~~~~


Any ideas on workaround (apart from disabling the build type check) or a fix?
Was this page helpful?