Answer the question
In order to leave comments, you need to log in
How not to mutate the original data?
There is a method that makes a request to the server and returns data of the type: RegistryGeneric
with a preliminary conversion to<Map<number, RegistryGeneric>>
interface RegistryGeneric {
id: number;
name: number;
}
interface RegistryGeneric {
id: number;
name: number;
geodata: Geo[]
}
interface RegistryGenericUI extends RegistryGeneric {
geodata: Geo[]
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question