title: Type 'CategoryModel[]' is missing the following properties from type 'GenericModel<CategoryModel[]>
body: <p>When I send request to the server, the response will be given to me in this :</p>
  
  <pre><code>{ 
     data:array(6),
     message:"operation Success",
     isSuccess:true,
     statusCode:0
  }
  </code></pre>
  
  <p>That's why I created a generic class :</p>
  
  <pre><code>export interface GenericModel&lt;T&gt; {
   data:T;
   isSuccess:boolean;
   statusCode:number;
   message:string;
   }
  </code></pre>
  
  <p>now i send a request to server for give me all <code>Category List</code> , i Create this Generic field:</p>
  
  <p><code>ListResponse:GenericModel&lt;CategoryModel[]&gt;;</code></p>
  
  <p>this CategoryModel : </p>
  
  <pre><code>export interface CategoryModel {
  id:number;
  name:string;
  parentId:number;
  }
  </code></pre>
  
  <p>And I use this function:</p>
  
  <pre><code>GetMainCat(){
  this.categoryService.GetListItem(this.GetAllcatListUrl).subscribe(data=&gt;{
    this.ListResponse=data
    console.log(this.listCatModel)
  });
  }
  </code></pre>
  
  <p>But in this line <code>this.ListResponse=data</code> it shows me error : </p>
  
  <blockquote>
    <p>Type 'CategoryModel[]' is missing the following properties from type 'GenericModel': data, isSuccess, statusCode, messagets(2739)</p>
  </blockquote>
  
  <p>Data has this format:</p>
  
  <pre><code>{ 
     data:array(6),
     message:"operation Success",
     isSuccess:true,
     statusCode:0
  }
  </code></pre>
  
  <p>What's the problem?</p>