Skip to content

chore(jsdoc): document @Prop() parsing#3232

Merged
rwaskiewicz merged 2 commits intomainfrom
rwaskiewicz/doc-prop-parsing
Feb 7, 2022
Merged

chore(jsdoc): document @Prop() parsing#3232
rwaskiewicz merged 2 commits intomainfrom
rwaskiewicz/doc-prop-parsing

Conversation

@rwaskiewicz
Copy link
Copy Markdown
Member

Pull request checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • (JS)Docs have been reviewed and added / updated if needed (for bug fixes / features)
  • Build (npm run build) was run locally and any changes were pushed
  • Unit tests (npm test) were run locally and passed
  • E2E Tests (npm run test.karma.prod) were run locally and passed
  • Prettier (npm run prettier) was run locally and passed

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

While doing an investigation surrounding prop behavior for union types (STENCIL-349), I took a little extra time to JSDoc some of the functions associated with prop parsing (although not all of them). The idea here was to "leave the forest a little nicer than you found it"

GitHub Issue Number: N/A

What is the new behavior?

this commit adds jsdoc + explicit return types to a portion of the
codebase that parses Stencil members that are decorated with @prop()

it also includes a minor code change where a duplicated enum is removed
from a bitwise calculation when determining whether or not a prop's type
is of the type 'boolean' or not

Does this introduce a breaking change?

  • Yes
  • No

Testing

N/A (I consider the JSDoc non-testable). I don't think there's any testing that can be done for the duplicated enum I removed from the bitwise calc, but LMK if you have any ideas.

Other information

Some items out of scope of the investigatory work I was doing have been TODO'ed in the codebase

this commit adds jsdoc + explicit return types to a portion of the
codebase that parses Stencil members that are decorated with @prop()

it also includes a minor code change where a duplicated enum is removed
from a bitwise calculation when determining whether or not a prop's type
is of the type 'boolean' or not
@rwaskiewicz rwaskiewicz requested a review from a team February 4, 2022 20:01
@rwaskiewicz rwaskiewicz merged commit 7614cba into main Feb 7, 2022
@rwaskiewicz rwaskiewicz deleted the rwaskiewicz/doc-prop-parsing branch March 7, 2022 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants