import type { JSCodeshift , Collection } from 'jscodeshift' ; export const findImport = ( root , j , name ) => root . find ( j . ImportDeclaration , { source : { type : 'Literal' , value : name } } ) ;