https://github.com/is2ei/poc-nodejs-undici-1011
https://github.com/is2ei/poc-nodejs-undici-1011
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/is2ei/poc-nodejs-undici-1011
- Owner: is2ei
- Created: 2022-03-16T04:19:28.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-16T05:01:27.000Z (over 4 years ago)
- Last Synced: 2025-01-12T05:28:48.104Z (over 1 year ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
POC-nodejs-undici-1011
===
POC for https://github.com/nodejs/undici/issues/1011
```
$ node no-error.js
About | Node.js
...
```
```
$ npm test
> poc-nodejs-undici-1011@1.0.0 test
> tsc --noemit
type-error.ts:3:33 - error TS2345: Argument of type '{ path: string; }' is not assignable to parameter of type '{ dispatcher?: Dispatcher | undefined; } & Omit & Partial>'.
Object literal may only specify known properties, and 'path' does not exist in type '{ dispatcher?: Dispatcher | undefined; } & Omit & Partial>'.
3 request('https://nodejs.org', { path: '/en/about/' })
~~~~~~~~~~~~~~~~~~
Found 1 error in type-error.ts:3
```