grantila / fetch-h2

HTTP/1+2 Fetch API client for Node.js
MIT License
336 stars 16 forks source link

test fix server-http1.ts: Remove typescript error in test/server-http1 for RawHeaders #121

Open theJC opened 1 year ago

theJC commented 1 year ago

With this fix, will allow npm run build to run successfully on a freshly downloaded repo

[0] test/lib/server-http1.ts(105,30): error TS2345: Argument of type 'unknown' is not assignable to parameter of type 'string | number | readonly string[]'.
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
[0] yarn build:ts exited with code 2
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! fetch-h2@0.0.0-development build: `concurrently 'yarn build:ts' 'yarn build:cert'`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the fetch-h2@0.0.0-development build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/jchristiansen/.npm/_logs/2023-03-05T19_21_40_482Z-debug.log