An open API service indexing awesome lists of open source software.

https://github.com/is2ei/poc-nodejs-undici-1011


https://github.com/is2ei/poc-nodejs-undici-1011

Last synced: over 1 year ago
JSON representation

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
```