import { Options as PrettierOptions } from 'prettier' ; import { OutputTransformer } from '.' ; export const prettierOutputTransformer = ( output , { prettier } , config ) => { const prettierCfg = { ... ( config . prettier || { } ) , parser : 'typescript' } ; return prettier . format ( output , prettierCfg ) ; } ;