fix(packages/stream): no initializers in ambient contexts
fix(packages/fetch): only export what's needed so TS doesn't mess up the imports in the output files
Projects that import from web-std currently get some nasty errors such as:
node_modules/@web-std/stream/src/lib.d.ts:18:5 - error TS1254: A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.
18 } = globalThis
~~~~~~~~~~
and
node_modules/@web-std/fetch/dist/src/fetch.d.ts:5:32 - error TS2307: Cannot find module 'packages/stream/src/lib.js' or its corresponding type declarations.
5 import { ReadableStream } from "packages/stream/src/lib.js";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fix(packages/stream): no initializers in ambient contexts fix(packages/fetch): only export what's needed so TS doesn't mess up the imports in the output files
Projects that import from web-std currently get some nasty errors such as:
and
This PR addresses these issues.