UNPKG

@remax/framework-shared

Version:

使用真正的 React 构建跨平台小程序

18 lines (17 loc) 600 B
import type { HostComponent, Platform } from '@remax/types'; import PluginDriver from './PluginDriver'; interface RuntimeOptions { platform?: Platform | ''; pxToRpx: boolean; debug: boolean; hostComponents: Record<string, HostComponent>; pluginDriver: PluginDriver; pageEvents: Record<string, string[]>; appEvents: string[]; history: any; mpa: boolean; } export declare function apply(options: Partial<RuntimeOptions>): void; export declare function get<K extends keyof RuntimeOptions>(key: K): RuntimeOptions[K]; export declare function reset(): void; export {};