packageDocumentation module preferred import { DoneInvokeEvent , ErrorPlatformEvent } from "xstate" ; export { default as withContext } from "./withContext" ; export { default as useServiceLogger } from "./useServiceLogger" ; typeparam typeparam param event export const isDoneInvokeEvent = < TData , TEvent extends { type : string ; } > ( event ) : event is DoneInvokeEvent < TData > => /^done.invoke/ . test ( event . type ) ; typeparam param event export const isErrorPlatformEvent = < TEvent extends { type : string ; } > ( event ) : event is ErrorPlatformEvent => /^error.platform/ . test ( event . type ) ;