title: How to get property of generic type?
body: <p>I have an abstract class, in the method of which I am passing an item of a generic type. Next, I need to get the property of this item, how to do it correctly?</p>
  
  <pre><code>export abstract class BaseService&lt;T&gt; {
      ...
      public saveItem(item: T) {
          ...
          if (item.id &lt;=== here I got error ) {
          }
          ...
      }
  
      export class ClusterItem {
          id: number;
          ...
       }
  
      export class ClustersService extends BaseService&lt;ClusterItem&gt; {
          ...
      }
  </code></pre>