私はtypescriptです中にGeoJSONを使用しようとするが、コンパイラは、この二つの変数のためにエラーがスローされます:Generic type 'Feature<T>' requires 1 type argument(s)
typescriptに "Generic type 'Feature <T>'が1つの型引数を必要とするとはどういう意味ですか?
const pos = <GeoJSON.Feature>{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [0, 1]
}
};
const oldPos = <GeoJSON.Feature>{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [2, 4]
}
};
これが意味する何を想定していますか?
試してみてください> –