labs42io / clean-code-typescript

Clean Code concepts adapted for TypeScript

Home Page:https://labs42io.github.io/clean-code-typescript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Do not add unneeded context ] to gets an error ?

MSakamaki opened this issue · comments

Do not add unneeded context
https://github.com/labs42io/clean-code-typescript#dont-add-unneeded-context

argments is not this., is not it a car ?
(sample gives an error)

type Car = {
  make: string;
  model: string;
  color: string;
}

function print(car: Car): void {
  console.log(`${car.make} ${car.model} (${car.color})`);
}