UNPKG

cve-connector

Version:
40 lines (35 loc) 1.03 kB
import { WebCommand } from './command' export interface PixelStreamingData { Code: '0' | '1' | '2' | '3' Data: string | null Result: string } export type PixelStreamingPromise = Promise<string> /** 指令执行回调函数 */ export type Resolve = (descriptor: UIDescriptor) => void /** 指令描述接口 */ export interface UIDescriptor { [x: string]: unknown /** UE Action to Web */ Action?: string /** Web Command to UE */ Command?: WebCommand Console?: string /** UE Action 或 Web Command 所使用的数据 */ Data?: unknown /** UE Action 或 Web Command 所使用的数据 */ Parameters?: unknown /** Web Command 执行的结果 */ Result?: unknown /** * [类型] Action | Command * - Type 为 Action 时,Action 提供 UE Action 描述 * - Type 为 Command Command 提供 Web Command 描述 */ Type?: string /** 每一条 Web Command 绑定的 ID */ UID?: string } export interface WebCommandData { Parameters: unknown }