Thanks for the post :)
And even though it's probably obvious, just in case someone was wondering (as I was), if you want to rename the variable, you have to type the original name in the object literal const { model: carModel }: { model: string } = car;
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks for the post :)
And even though it's probably obvious, just in case someone was wondering (as I was), if you want to rename the variable, you have to type the original name in the object literal
const { model: carModel }: { model: string } = car;