import { API , FileInfo , Options } from 'jscodeshift' ; export function useFragment ( file , api , options ) { const j = api . jscodeshift ; const root = j ( file . source ) ; const printOptions = options . printOptions || { quote : 'single' , trailingComma : false , lineTerminator : '\n' } ; return root . toSource ( printOptions ) ; } export const parser = 'tsx' ; export default useFragment ;