UNPKG

waft-ws-protocol

Version:

waft ws 协议库

41 lines (40 loc) 867 B
export declare enum ConnectTypes { web = "web", device = "device", simulator = "simulator" } export interface DevStatus { connected: boolean; type: ConnectTypes; deviceInfo?: DeviceInfo; } export interface DeviceInfo { abi: string; app: string; brand: string; model: string; pixelRatio: number; platform: string; screenHeight: number; screenWidth: number; sdkVersion: string; sdkVersionCode: number; system: string; version: string; versionCode: number; } export interface ProjectOpts { projectDir?: string; distDir?: string; webPreviewUrl?: string; webUrl?: string; output?: string; baseDir?: string; workspaceDir?: string; json?: any; isWaftProject?: boolean; } export declare enum WS_COMMAND { SEND_DEV_STATUS = 1000001, DEV_STATUS = 1000002 }