refactor(docs-infra): change class to interface where class properties not used by ajitsinghkaler · Pull Request #36958 · angular/angular · GitHub
Skip to content

refactor(docs-infra): change class to interface where class properties not used - #36958

Closed
ajitsinghkaler wants to merge 1 commit into
angular:masterfrom
ajitsinghkaler:interface-changes
Closed

ajitsinghkaler wants to merge 1 commit into
angular:masterfrom
ajitsinghkaler:interface-changes

Conversation

@ajitsinghkaler

Copy link
Copy Markdown
Contributor

In resource.model.ts the interfaces of the resources were defined as classes, these do not use any class properties and are only used for type checking. So, changed them from class to interface.

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.io application / infrastructure changes
  • Other... Please describe:

What is the current behavior?

class used for interfaces

Issue Number: N/A

What is the new behavior?

Interface used for interfaces

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

@pullapprove
pullapprove Bot requested a review from IgorMinar May 6, 2020 18:05
@ajitsinghkaler
ajitsinghkaler force-pushed the interface-changes branch 3 times, most recently from b7544f1 to 6c3d3c1 Compare May 7, 2020 01:25
@ajitsinghkaler ajitsinghkaler changed the title fix(aio): change class to interface where class properties not used docs: change class to interface where class properties not used May 7, 2020
@gkalpak gkalpak changed the title docs: change class to interface where class properties not used refactor(docs-infra): change class to interface where class properties not used May 7, 2020
@gkalpak gkalpak added comp: docs-infra action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews target: patch This PR is targeted for the next patch release refactoring Issue that involves refactoring or code-cleanup labels May 7, 2020
@ngbot ngbot Bot modified the milestone: needsTriage May 7, 2020
@gkalpak
gkalpak requested review from gkalpak and removed request for IgorMinar May 7, 2020 11:55

@gkalpak gkalpak left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx, @ajitsinghkaler!
Can you please change the commit message to refactor(docs-infra): ...?

…s not used

In resource.model.ts the interfaces of the resources were defined as classes, these do not use any class properties and are only used for type checking. So, changed them from class to interface.
@ajitsinghkaler

Copy link
Copy Markdown
Contributor Author

@gkalpak gkalpak added action: merge The PR is ready for merge by the caretaker and removed action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews labels May 8, 2020
alxhub pushed a commit that referenced this pull request May 8, 2020
…s not used (#36958)

In resource.model.ts the interfaces of the resources were defined as classes, these do not use any class properties and are only used for type checking. So, changed them from class to interface.

PR Close #36958
@alxhub alxhub closed this in 39e066a May 8, 2020
@ajitsinghkaler
ajitsinghkaler deleted the interface-changes branch May 16, 2020 14:25
@angular-automatic-lock-bot

Copy link
Copy Markdown

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Jun 16, 2020
profanis pushed a commit to profanis/angular that referenced this pull request Sep 5, 2020
…s not used (angular#36958)

In resource.model.ts the interfaces of the resources were defined as classes, these do not use any class properties and are only used for type checking. So, changed them from class to interface.

PR Close angular#36958
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker cla: yes refactoring Issue that involves refactoring or code-cleanup target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants