db-errors icon indicating copy to clipboard operation
db-errors copied to clipboard

Add constructor types

Open fiznool opened this issue 4 years ago • 3 comments

Trying to instantiate these error classes in TypeScript yielded a warning, since there was no constructor types, it was falling back to the default Error constructor (expecting a single message string argument).

Disclaimer: there might be a better way to implement this without all the duplication, but that would require more TypeScript skills than I currently possess.

fiznool avatar Mar 20 '20 21:03 fiznool

Hi there, just bumping this.

CI appears to be failing on an unrelated issue.

fiznool avatar Jul 02 '20 05:07 fiznool

Hello, any news on if/when this could be merged? It's bitten me again today.

fiznool avatar Aug 18 '20 11:08 fiznool

Ran into this issue today as well. Can it please be merged?

paskhaver avatar Oct 09 '20 21:10 paskhaver