-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ad35654
commit ba4ec1e
Showing
8 changed files
with
52 additions
and
15 deletions.
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// chrome.d.ts | ||
|
||
declare namespace chrome.runtime { | ||
interface ExtensionMessageEvent { | ||
/** | ||
* Adds a listener to the onMessage event. | ||
* @param listener The callback function to execute when a message is received. | ||
*/ | ||
addListener(listener: MessageListener): void; | ||
} | ||
|
||
interface RuntimeInstalledEvent { | ||
/** | ||
* Adds a listener to the onMessage event. | ||
* @param listener The callback function to execute when a message is received. | ||
*/ | ||
addListener(listener: MessageListener): void; | ||
} | ||
} | ||
|
||
declare namespace chrome.commands { | ||
interface CommandEvent { | ||
/** | ||
* Adds a listener to the onMessage event. | ||
* @param listener The callback function to execute when a message is received. | ||
*/ | ||
addListener(listener: MessageListener): void; | ||
} | ||
} |
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
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
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