@microsoft/windows-admin-center-sdk
Version:
Microsoft - Windows Admin Center Shell
50 lines (49 loc) • 1.07 kB
TypeScript
import { RpcBaseData } from '../rpc-base';
/**
* Electron request RPC call name and version.
*/
export declare class RpcElectronRequestKey {
static command: string;
static version: string;
}
/**
* Electron response RPC call name and version.
*/
export declare class RpcElectronResponseKey {
static command: string;
static version: string;
}
/**
* Electron operation/action RPC message.
*/
export interface RpcElectronOperation extends RpcBaseData {
/**
* Request specific Id to track completion.
*/
eventName: string;
/**
* Request specific Id to track completion.
*/
requestId: string;
/**
* The request payload to send to the electron host
*/
payload: any;
}
/**
* Electron operation/action RPC message result.
*/
export interface RpcElectronOperationResult {
/**
* Request specific Id to track completion.
*/
requestId: string;
/**
* The response of the electron host operation
*/
response?: any;
/**
* Error if any
*/
error?: string;
}