ben daktilo GeoJSON kullanmayı deneyin ama derleyici bu iki değişken için hata atıyor: Generic type 'Feature<T>' requires 1 type argument(s)
"Generic type" Feature <T> 'ifadesinin anlamı, Typecript içinde 1 tür argüman (lar) gerektirir?
const pos = <GeoJSON.Feature>{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [0, 1]
}
};
const oldPos = <GeoJSON.Feature>{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [2, 4]
}
};
bu da ne demek olduğunu?
deneyin> –