format import { FlipperErrorMessage , FlipperMessageBus } from './message' ; import { FlipperPluginReceiverRes } from './plugin' ; export class FlipperResponder { constructor ( public readonly responderId , private client ) { } success ( response ? ) { this . client . sendData ( { id : this . responderId , success : response == null ? null : response , } ) ; } error ( response ) { this . client . sendData ( { id : this . responderId , error : response } ) ; } }