Confusingly, the colon here does not indicate the type. The type, if you specify it, still needs to be written after the entire destructuring:
Destructuring an object in TypeScript with Types is very counterintituive.
Confusingly, the colon here does not indicate the type. The type, if you specify it, still needs to be written after the entire destructuring:
Destructuring an object in TypeScript with Types is very counterintituive.