mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 12:21:13 -05:00
Get communication working between extension and webview; add shared data types
This commit is contained in:
8
src/shared/ExtensionMessage.ts
Normal file
8
src/shared/ExtensionMessage.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
// type that represents json data that is sent from extension to webview, called ExtensionMessage and has 'type' enum which can be 'plusButtonTapped' or 'settingsButtonTapped' or 'hello'
|
||||
|
||||
// webview will hold state
|
||||
export interface ExtensionMessage {
|
||||
type: "text" | "action"
|
||||
text?: string
|
||||
action?: "plusButtonTapped" | "settingsButtonTapped"
|
||||
}
|
||||
Reference in New Issue
Block a user