Reference return types in TypeScript service.