@aiot-toolkit/emulator
Version:
vela emulator tool.
20 lines (19 loc) • 1.11 kB
TypeScript
import CommonEmulatorInstance from './common';
import GoldfishInstance from './dev';
import MiwearInstance from './miwear';
import PreInstance from './pre';
import { VelaImageType } from '../typing/Vvd';
import { IEmulatorInstanceParams } from '../typing/Instance';
import { Vela5Instance } from './vela5';
import { VelaMiwear5 } from './miwear5';
import { MiniSound5 } from './minisound';
declare function getInstanceClass(imageType: VelaImageType): typeof GoldfishInstance | typeof MiwearInstance | typeof PreInstance | typeof Vela5Instance | typeof VelaMiwear5 | typeof MiniSound5;
/**
* 根据镜像决定使用哪个instance
* Vela正式版(4.0) -> MiwearInstance
* Vela正式版(不带 miwear 版本) -> PreInstance
* Vela开发版(dev, 0.0.2) -> OldGoldfishInstance
* Vela开发版(dev),除0.0.2的其他版本 -> GoldfishInstance
*/
declare function findInstance(imageType: VelaImageType, params: IEmulatorInstanceParams): CommonEmulatorInstance;
export { CommonEmulatorInstance as CommonInstance, GoldfishInstance, MiwearInstance, Vela5Instance, PreInstance, findInstance, getInstanceClass };