import { ExternalConfig } from "coral-framework/lib/externalConfig" ; import { Decorator } from "./types" ; const withConfig = ( config ) : Decorator => ( pym ) => { pym . onMessage ( "getConfig" , ( ) => { pym . sendMessage ( "config" , JSON . stringify ( config ) ) ; } ) ; } ; export default withConfig ;