UNPKG

@difizen/mana-core

Version:

19 lines 657 B
import type { Syringe } from '@difizen/mana-syringe'; import * as React from 'react'; import type { ManaContext } from '../module/mana-module-context'; export interface ContextProps { /** * 指定容器上下文 */ context?: Syringe.Context; /** * 是否作为子容器 */ asChild?: boolean; children?: React.ReactNode | React.ReactNode[]; modules?: Syringe.Module[]; onReady?: (context: ManaContext, ...args: any) => void; loading?: JSX.Element | null; } export declare const ContextComponent: (props: ContextProps) => import("react/jsx-runtime").JSX.Element | null; //# sourceMappingURL=context.d.ts.map