UNPKG

@reactant/context

Version:
21 lines (20 loc) 1.01 kB
import { Config, Context, SyncContextCallback } from '@reactant/types'; import State from './state'; import bootstrap from './bootstrap'; import defaultContext from './defaultContext'; import merge from './merge'; export declare function requireDefault<T = any>(moduleName: string): T; export declare const state: State<Context>; export default function getContext(): Context; export declare function setContext(context: Context): Context; export declare function finish(): void; export declare function syncContext(callback?: SyncContextCallback): Context | Promise<Context>; export declare function sanitizeJsonString(json: string, rootPath: string): string; export declare function sanitizeConfig(config: Config, rootPath?: string): Config; export declare function sanitizeContext(context: Context): Context; export { bootstrap, defaultContext, merge }; export * from './pkg'; export * from './platform'; export * from './plugin'; export * from './processes'; export * from '@reactant/types/lib/context';