UNPKG

@reactant/context

Version:
9 lines (8 loc) 601 B
import { Context, SyncContextCallback } from '@reactant/types'; import { MergeModifier, MergeOptions } from './types'; export declare function merge<Config>(config: Config, modifier: Partial<Config> | MergeModifier, partialOptions?: Partial<MergeOptions>, ...args: any[]): Config; export declare function setContext(context: Context): Context; export declare function syncContext(callback?: SyncContextCallback): Context | Promise<Context>; export declare function sanitizeContext(context: Context): Context; export default function getContext(): Context; export * from '@reactant/types/lib/context';