We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
RpcStatusType is defined in jsonrpc.ts, but not in jsonrpc.js. So this code throws an error:
import { RpcStatusType } from "jsonrpc-lite"; ... switch (req.type) { case RpcStatusType.invalid: ...
The text was updated successfully, but these errors were encountered:
Moreover, if we'd try to use this enum with ts-jest it will also be undefined. (kulshekhar/ts-jest#281).
ts-jest
undefined
I guess, we should make enum const:
export const enum RpcStatusType { request = 'request', notification = 'notification', success = 'success', error = 'error', invalid = 'invalid', }
Sorry, something went wrong.
@junyuanqi, @zensh could anybody review the fix?
bd71f17
@antongolub Thank you very much, v2.1.0 released.
v2.1.0
No branches or pull requests
RpcStatusType is defined in jsonrpc.ts, but not in jsonrpc.js. So this code throws an error:
The text was updated successfully, but these errors were encountered: