solomon mulatu
04/10/2025, 5:57 AM{
"document": {
"id": 0,
"location": [48.86093481609114, 2.33698396872901],
"points": 1,
"title": "Louvre Museuem"
},
"geo_distance_meters": {"location": 1020},
"highlights": [],
"text_match": 16737280
}
How can I define a custom TypeScript type that accurately represents the following response structure, especially the geo_distance_meters field, which is an object with dynamic string keys and numeric values?
The original Typesense types do not support this shape, so I need to create a type manually to match the response.