Pipe error with ngFor in object
<p>I use pipe for *ngFor in Object, and when i declare pipe in my component - i've got this error (VS Code) - ></p>

<pre><code>[ts] Argument of type '{ selector: string; templateUrl: string; pipes: typeof ObjNgFor[]; providers: typeof TableCompone...' is not assignable to parameter of type 'ComponentMetadataType'.
  Object literal may only specify known properties, and 'pipes' does not exist in type 'ComponentMetadataType'
</code></pre>

<p>this is my component:</p>

<pre><code>    import { Component, OnInit, Pipe, PipeTransform } from '@angular/core';

        @Pipe({ name: 'ObjNgFor',  pure: false })
        export class ObjNgFor implements PipeTransform {
            transform(value: any, args: any[] = null): any {
                return Object.keys(value).map(key =&gt; Object.assign({ key }, value[key]));
            }
        }

        @Component({
            selector: 'tablecomponent',
            templateUrl: 'app/table.template.html',
            pipes: [ObjNgFor],
            providers: [TableComponentService]
        })
        export class TableComponent implements OnInit {

            lists: any;

            constructor(public _service: TableComponentService) {

            }

        ngOnInit() {
         this._service.getServices()
            .subscribe(lists =&gt; this.lists = lists)
            }

        }
</code></pre>

<p>and this is a part of my template with <code>*ngFor</code> direcrive:</p>

<pre><code> &lt;tr *ngFor="let list of lists | ObjNgFor"&gt;
                &lt;td&gt;{{ list.name}}&lt;/td&gt;
                &lt;td&gt;&lt;/td&gt;
                &lt;td&gt;&lt;/td&gt;
                &lt;td&gt;&lt;/td&gt;
                &lt;td&gt;&lt;/td&gt;
 &lt;/tr&gt;
</code></pre>