-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
Wrong typescript declaration for errorConstructors #78
Comments
Where are you seeing this error? What's your code? |
@fregante I have converted the code to Typescript https://gist.github.com/ayanamidev/e32ea8edb5c4bd462b04ab30af9465cb Since the type definitions are written & updated manually, I think the error from typescript compiler makes sense. |
I thought I commented here. In short the error doesn't affect the final user, but PR welcome to fix the type to something more generic like |
I'm also having trouble adding my own constructor to this. It seems that:
Note: The line seems to work, it's just that the types seem incorrect. |
Hi, I updated to the latest version of serialize-error (11.0.0) and the support for ios 13.6 and below is gone. Getting the following error. Looks related to error constructor: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes#field_declarations |
That's unrelated. You'll just have to use Babel or keep using the older version. |
Sorry to necro bump, I've got the exact same error (currently switched off with a ts-ignore comment). Any update on this? |
This message is shown when the code is converted to Typescript.
The text was updated successfully, but these errors were encountered: