Skip to content

Conversation

@S1lentium
Copy link
Contributor

@S1lentium S1lentium commented Feb 9, 2022

It would be great if the data property would accept any. For example:

throw new InvalidParameters([{
    field: 'name',
    message: 'name property is required',
}]);

fix: allow `data: any` in JsonRpcErrorSchema
fix: allow `data: any` in JsonRpcError
@julien-f julien-f changed the title Change data: string to data: any in JsonRpcError fix(JsonRpcError): data can be of any type Sep 9, 2022
@julien-f julien-f merged commit 7a6387d into JsCommunity:master Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants