Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upFix `data` property definition in @feathersjs/errors #2018
Conversation
`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.
datais described in TypeScript definitions as always defined property, while from the actual implementation it can be undefined. As result direct assignment to anderror.data.boowere not catched by TypeScript.This PR fixes that definition to be according to actual code.