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

Add RPC helpers #1256

Merged
merged 97 commits into from
Mar 13, 2024
Merged

Add RPC helpers #1256

merged 97 commits into from
Mar 13, 2024

Conversation

jerelmiller
Copy link
Member

Adds an RPC implementation to make it easier to ask for data between devtools extension types.

@jerelmiller jerelmiller marked this pull request as ready for review March 13, 2024 05:50
@jerelmiller jerelmiller requested a review from a team as a code owner March 13, 2024 05:50
getClientOperations(): GetContext<DevtoolsMachine>["clientContext"];
};

function isDevtoolsMessage<Message extends Record<string, unknown>>(
Copy link
Member Author

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.

Copy link
Member

@phryneas phryneas left a 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!

src/extension/rpc.ts Outdated Show resolved Hide resolved
src/extension/__tests__/rpc.test.ts Outdated Show resolved Hide resolved
@jerelmiller jerelmiller merged commit 28140d8 into main Mar 13, 2024
9 checks passed
@jerelmiller jerelmiller deleted the actor-rpc branch March 13, 2024 15:34
@github-actions github-actions bot mentioned this pull request Mar 13, 2024
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