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
fix/4068 batchInsert correct definitions #4131
fix/4068 batchInsert correct definitions #4131
Conversation
@maximelkin One of the TSD tests are failing, try running |
test-tsd/batchInsert.test-d.ts
Outdated
|
||
// assert any bad column from returning list gives error | ||
// tsd gives error on this, lol | ||
/*expectError( |
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.
Do you think that tsd is wrong here? If there is an easy self-contained repro possible, perhaps an issue at https://github.com/SamVerschueren/tsd/issues could be opened?
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.
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.
Thank you. Can you add the reference to that bug report next to the commented out code?
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.
I will try to fix it fast in tsd
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.
does tsd have any caches? I cant reproduce it anymore on extracted example
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.
Not tsd per se, but TypeScript definitely has some caches, so that might have been a factor.
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.
Oh, i copied stacktrace from wrong place
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.
Error pops up because this expression give 2 errors, but expectError allows only one
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.
alternative fix is expectError(expectError())
tsc typecheck failing pipeline, I will try to fix (probably disable typecheck on them idk) |
abea2a8
to
c98699c
Compare
Thanks! |
Closes #4068