piral-cli
Version:
The standard CLI for creating and building a Piral instance or a Pilet.
17 lines (16 loc) • 653 B
TypeScript
import { PlatformStartShellOptions, PlatformStartModuleOptions } from '../types';
export interface WebPlatformSettings {
platform: 'web';
}
export interface NodePlatformSettings {
platform: 'node';
}
export type PlatformSettings = WebPlatformSettings | NodePlatformSettings;
export interface UpdatePlatformOptions {
(options: any): void;
}
export interface PlatformTarget {
startShell(options: PlatformStartShellOptions): Promise<UpdatePlatformOptions>;
startModule(options: PlatformStartModuleOptions): Promise<UpdatePlatformOptions>;
}
export declare function configurePlatform(target?: Partial<PlatformSettings>): PlatformTarget;