Something went wrong. Try again.
source dump of claude code forked from oppi.li/claude-code
Something went wrong. Try again.
523 B · 21 lines
TypeScript
at main
12345678910111213141516171819202122import { createContext } from 'react'
export type Props = { /** * Exit (unmount) the whole Ink app. */ readonly exit: (error?: Error) => void}
/** * `AppContext` is a React context, which exposes a method to manually exit the app (unmount). */// eslint-disable-next-line @typescript-eslint/naming-conventionconst AppContext = createContext<Props>({ exit() {},})
// eslint-disable-next-line custom-rules/no-top-level-side-effectsAppContext.displayName = 'InternalAppContext'
export default AppContext