UNPKG

di-tory

Version:

Compose applications with dependency injection

15 lines (14 loc) 496 B
import { AsyncScopeApi, AsyncStorage } from './types'; export declare const init: (api: AsyncScopeApi) => void; export declare const enter: () => void; export declare const run: <T>(fn: () => T) => T; export declare const getStore: () => AsyncStorage; export declare const exit: () => void; declare const _default: { init: (api: AsyncScopeApi) => void; enter: () => void; run: <T>(fn: () => T) => T; getStore: () => AsyncStorage; exit: () => void; }; export default _default;