Skip to content

Conversation

@bajtos
Copy link
Member

@bajtos bajtos commented Jul 13, 2020

Instead of supressing the linter check, use a jsdoc-style comment to provide type information about this value.

See #5831

Checklist

👉 Read and sign the CLA (Contributor License Agreement) 👈

  • npm test passes on your machine
  • New tests added or existing tests modified to cover all changes
  • Code conforms with the style guide
  • API Documentation in code was updated
  • Documentation in /docs/site was updated
  • Affected artifact templates in packages/cli were updated
  • Affected example projects in examples/* were updated

👉 Check out how to submit a PR 👈

@bajtos bajtos requested a review from raymondfeng July 13, 2020 12:36
@bajtos bajtos requested review from agnes512 and emonddr as code owners July 13, 2020 12:36
@bajtos bajtos self-assigned this Jul 13, 2020
Instead of supressing the linter check, use a jsdoc-style comment
to provide type information about `this` value.

Signed-off-by: Miroslav Bajtoš <mbajtoss@gmail.com>
Copy link
Contributor

@agnes512 agnes512 left a comment

Choose a reason for hiding this comment

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

I didn't know we can do such tricks 👍

@bajtos bajtos merged commit 1b8be95 into master Jul 14, 2020
@bajtos bajtos deleted the fix/invalid-this branch July 14, 2020 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants