import { Collection , CollectionType } from '../types' ; param collection returns export function getCollectionType ( collection ) { if ( collection . schema ) return 'table' ; if ( collection . meta ) return 'alias' ; return 'unknown' ; }