UNPKG

348 BTypeScriptView Raw
1/// <reference types="react" />
2export interface Props {
3 /**
4 * Exit (unmount) the whole Ink app.
5 */
6 readonly exit: (error?: Error) => void;
7}
8/**
9 * `AppContext` is a React context, which exposes a method to manually exit the app (unmount).
10 */
11declare const AppContext: import("react").Context<Props>;
12export default AppContext;