import { Package } from '../types' ; const isPackageOfficial = ( pkg ? ) : boolean => { if ( pkg && ( pkg . repository . official || pkg . official ) ) { return true ; } return false ; } ; export default isPackageOfficial ;