-
Notifications
You must be signed in to change notification settings - Fork 168
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
Add RPC helpers #1256
Add RPC helpers #1256
Conversation
getClientOperations(): GetContext<DevtoolsMachine>["clientContext"]; | ||
}; | ||
|
||
function isDevtoolsMessage<Message extends Record<string, unknown>>( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For type safety, this is no longer exported. Prefer using the helper below this instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great to me and I can't wait to use it!
Just one more suggestion, but no matter if you take it or not: approved!
Adds an RPC implementation to make it easier to ask for data between devtools extension types.