Answer the question
In order to leave comments, you need to log in
How to specify the type for destructuring?
For example, there is a line:
const [customLayer, map, layer, sidebarContentService] = actions;
const [customLayer, map<Map> as Map, layer, sidebarContentService] = actions;
Answer the question
In order to leave comments, you need to log in
playground
It is necessary to specify the type for the whole pack as for tuple
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question