Skip to content
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 `data` property definition in @feathersjs/errors #2018

Open
wants to merge 1 commit into
base: crow
from

Conversation

@tinovyatkin
Copy link

@tinovyatkin tinovyatkin commented Jul 16, 2020

data is described in TypeScript definitions as always defined property, while from the actual implementation it can be undefined. As result direct assignment to and error.data.boo were not catched by TypeScript.

This PR fixes that definition to be according to actual code.

`data` is described in TypeScript definitions as always defined property, while from [the actual implementation](https://github.com/feathersjs/feathers/blob/c838d8bc4b8a78cb90a2d299bfe4f7b6b8d8c2f8/packages/errors/lib/index.js#L8) it can be undefined.
This PR fixes that definition to be according to actual code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

1 participant
You can’t perform that action at this time.