Last active
March 3, 2022 15:56
-
-
Save Moizsohail/85528c3864fce0bc4896896eae41374f to your computer and use it in GitHub Desktop.
Chrome Extension In React With NPM Modules: Part 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export enum MessageTypes { | |
execute, | |
} | |
export interface ChromeMessageDefault { | |
type: MessageTypes; | |
} | |
export interface ChromeMessageExecute { | |
type: MessageTypes.execute; | |
text: string; | |
} | |
export type ChromeMessage = ChromeMessageDefault | ChromeMessageExecute; | |
export type MessageResponse = (response?: any) => void; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment