microsoft/vscode-react-native
Publicmirrored from https://github.com/microsoft/vscode-react-nativeAvailable
src/cdp-proxy/CDPMessageHandlers/ICDPMessageHandler.ts
20lines · modecode
| 1 | // Copyright (c) Microsoft Corporation. All rights reserved. |
| 2 | // Licensed under the MIT license. See LICENSE file in the project root for details. |
| 3 | |
| 4 | import { |
| 5 | IProtocolCommand, |
| 6 | IProtocolSuccess, |
| 7 | IProtocolError |
| 8 | } from "vscode-cdp-proxy"; |
| 9 | |
| 10 | export declare type ProtocolMessage = IProtocolCommand | IProtocolSuccess | IProtocolError; |
| 11 | |
| 12 | export interface ProcessedCDPMessage { |
| 13 | event: ProtocolMessage; |
| 14 | sendBack: boolean; |
| 15 | } |
| 16 | |
| 17 | export interface ICDPMessageHandler { |
| 18 | processDebuggerCDPMessage: (event: any) => ProcessedCDPMessage; |
| 19 | processApplicationCDPMessage: (event: any) => ProcessedCDPMessage; |
| 20 | } |
| 21 | |