packageDocumentation module import { EventObject , AnyEventObject , Typestate , StateMachine } from "xstate" ; typeparam typeparam typeparam typeparam param machine const withContext = < TContext , TEvent extends EventObject = AnyEventObject , TTypestate extends Typestate < TContext > = any > ( machine ) => ( context ) : typeof machine => machine . withContext ( context ) as any ; export default withContext ;