import { Selectable } from '@sap-cloud-sdk/odata-common/internal' ; import { DeSerializers } from '../de-serializers' ; import { Entity } from '../entity' ; typeparam param selects returns internal export function getSelect < EntityT extends Entity , DeSerializersT extends DeSerializers > ( selects = [ ] ) { const selection = selects . map ( select => select . _fieldName ) ; if ( selection . length ) { if ( selection . find ( select => select . endsWith ( '*' ) ) ) { return { select : '*' } ; } return { select : selection . join ( ',' ) } ; } return { } ; }