const NAMESPACE = 'balm' ; function toNamespace ( taskName ) { let result = 'unknown' ; if ( BalmJS . utils . isArray ( taskName ) ) { result = ( taskName as string [ ] ) . map ( ( name ) => `${ NAMESPACE }:${ name }` ) ; } else { result = `${ NAMESPACE }:${ taskName as string }` ; } return result ; } export default toNamespace ;