This repository was archived by the owner on Sep 18, 2020. It is now read-only.
This repository was archived by the owner on Sep 18, 2020. It is now read-only.
List.map return array and not typed List #95
Open
Description
I have the following code
function changeCollection(rawData:List<RawData>): List<Data> {
let filtered:List<RawData> = rawData.filter((value)=> true/** some condition */)
console.log('Wo: ', filtered) // looks good
let mapped:List<Template> = filtered.map(rawToData) // returns [] instead of List<Data>
return mapped;
}
function rawToData(val:RawData):Data{/*Impel*/}
Metadata
Metadata
Assignees
Labels
No labels