Skip to content

Prefix all interfaces/types with Mat #9587

Closed
@rafaelss95

Description

@rafaelss95

Bug, feature request, or proposal:

Maybe a proposal.

What is the expected behavior?

I'd expect all interfaces/types to have the Mat prefix for consistency.

What is the current behavior?

Not sure if it was intentional, but there are some interfaces/types that aren't prefixed by Mat.

Ex.:

https://github.com/angular/material2/blob/a5ca9ceec6cc3bcd4ad0e9f44a63ef5ed2c2144e/src/lib/button-toggle/button-toggle.ts#L34

What is the use-case or motivation for changing an existing behavior?

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

5x.

Is there anything else we should know?

You should already know this, but anyway to find all interfaces/types that aren't prefixed by Mat, you can search using the following regex export (interface|type) [^M].

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4A relatively minor issue that is not relevant to core functionsarea: manyArea label for issues related to many componentsfeatureThis issue represents a new feature or feature request rather than a bug or bug fixneeds: discussionFurther discussion with the team is needed before proceeding

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions