title: TS 2322 - Property 'id' is missing in type '{ id: number
body: <p>New to Angular and TS. I created model with the same properties but i got error and cant find solution: </p>
  
  <blockquote>
    <p>TS2322: Type '{ id: number; model: string; plate: string;
    deliveryDate: string; deadline: string; client: { fir...' is not
    assignable to type 'Car'. Property 'id' is missing in type '{ id:
    number; model: string; plate: string; deliveryDate: string; deadline:
    string; client: { fir...'.    cars : Car = [</p>
  </blockquote>
  
  <p>my files:</p>
  
  <pre><code>//cars-list.component.ts
  
  import { Car } from '../models/car';
  .
  .
  .
  cars : Car = [
  {
    id: 1,
    model: 'Mazda Rx7',
    plate: 'GD2121E',
    deliveryDate: '21-04-2017',
    deadline: '05-05-2016',
    client: {
      firstName: 'Jan',
      surname: 'Kowalski'
    },
    cost: 300,
    isFullyDamaged: true
  }, 
  ...
  </code></pre>
  
  <p>and   </p>
  
  <pre><code>//car.ts
  import {Client} from './client';
  export interface Car {
    id: number;
    model: string;
    plate: string;
    deliveryDate: string;
    deadline: string;
    client: Client;
    cost: number;
    isFullyDamaged: boolean;
  }
  </code></pre>