type DocumentData = { [field: string]: any };
let data1: DocumentData = {4:3};
console.log(data1); //{4:3}
key is string type, value is any type, Doesn't it mean that the DocumentData type in the above code is the object type of the above type? I know Dart, so isn't it the Map<String, dynamic> type in Dart?
However, when I ran the above code on the site below, it seems that no error occurred. Am I misunderstanding something? https://playcode.io/1081552
As indicated above.As explained above, I can't grasp what kind of data structure the DocumentData type indicates.