for a record with id(number), but all other fields are strings. How to type it?
the following definition is invalid.
type RecordWithID = {
id: number;
[key: string]: string;
};
ps: edit int => number
for a record with id(number), but all other fields are strings. How to type it?
the following definition is invalid.
type RecordWithID = {
id: number;
[key: string]: string;
};
ps: edit int => number