import { Constants , FileInfo } from '../types' ; import { createShimsAst } from '../createShimsAst' ; import { printNode } from './printNode' ; import { emitFile } from './emitFile' ; export const emitShims = ( distDir , fileInfos , constants ) => { const fileBody = printNode ( createShimsAst ( fileInfos , constants ) ) ; const distPath = `${ distDir }/vuex-shims.ts` ; emitFile ( distDir , distPath , fileBody ) ; } ;