import { Message } from '@statechannels/client-api-schema' ; import { SingleChannelOutput , MultipleChannelOutput } from '..' ; import { Notice } from '../protocols/actions' ; param outputOrOutbox returns export function getMessages ( outputOrOutbox ) { if ( isOutput ( outputOrOutbox ) ) { return outputOrOutbox . outbox . map ( o => o . params ) ; } else { return outputOrOutbox . map ( o => o . params ) ; } } function isOutput ( something ) { return 'outbox' in something ; }