Skip to content

Bug: Generic type 'CdkRowDef<T>' requires 1 type argument(s) #7591

@faelmorais

Description

@faelmorais

Bug:

After updating from 2.0.0-beta.11 to 2.0.0-beta.12, when running my project I get the following errors:
node_modules/@angular/material/table/typings/row.d.ts (20,39): Generic type 'CdkRowDef<T>' requires 1 type argument(s)
node_modules/@angular/material/table/typings/row.d.ts (23,40): Generic type 'CdkRowDef<T>' requires 1 type argument(s)

If I change both lines from:
export declare class MdRowDef extends _MdCdkRowDef { }

export declare class MatRowDef extends _MdCdkRowDef { }

To:
export declare class MdRowDef extends _MdCdkRowDef<any> { }

export declare class MatRowDef extends _MdCdkRowDef<any> { }

I can run my project again with no issues.
I don't use the table module but was wondering if this is the correct way to solve the issue.

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Angular 4.4.3, Material 2.0.0-beta.12, macOs Sierra, TypeScript 2.5.2, no browser affected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions