-
-
Notifications
You must be signed in to change notification settings - Fork 685
fix: interceptors.d.ts has no default export #3332
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
|
||
| import { File } from './file' | ||
| import { SpecIterator, SpecIterableIterator } from './fetch' | ||
| import { SpecIterableIterator } from './fetch' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
was unused import
| opts?: ConvertToIntOpts, | ||
| prefix: string, | ||
| argument: string | ||
| opts?: ConvertToIntOpts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tsc reported that after optional paramaters there can not be mandatory parameters.
Compared with implementation and the following arguments are not existing.
| "test:tdd": "borp --expose-gc -p \"test/*.js\"", | ||
| "test:tdd:node-test": "borp -p \"test/node-test/**/*.js\" -w", | ||
| "test:typescript": "tsd && tsc --skipLibCheck test/imports/undici-import.ts", | ||
| "test:typescript": "tsd && tsc test/imports/undici-import.ts --typeRoots ./types && tsc ./types/*.d.ts --noEmit --typeRoots ./types", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
eslint is throwing typings errors. to avoid it we simulate an skipLibCheck by pointing to the types folder. this is not nice but eslint sucks. So this is a low level solution.
mcollina
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Closes #3330
We need to remove skipLibCheck to throw the error. Now we can detect the bug.