Skip to content

Conversation

@airbugg
Copy link

@airbugg airbugg commented Mar 7, 2019

No description provided.

Copy link
Owner

@satya164 satya164 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. I left few small comments

/* @flow */

export type Worker = {
export type Target = {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it should be like Worker | ChromeRuntimePort? Right now the type requires the methods to exist even if we don't use them

};

target.addEventListener('message', listener);
if (target.onMessage) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a comment mentioning which environment this handles?

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