-
Notifications
You must be signed in to change notification settings - Fork 1k
Improve docs to more clearly link to the options interface for queryAssignedNodes #2360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🦋 Changeset detectedLatest commit: 825239a The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
📊 Tachometer Benchmark ResultsSummarynop-update
render
update
update-reflect
Resultslit-element-list
render
update
update-reflect
lit-html-kitchen-sink
render
update
nop-update
lit-html-repeat
render
update
lit-html-template-heavy
render
update
reactive-element-list
render
update
update-reflect
|
aomarks
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
…ryAssignedNodes. Raised in lit/lit.dev#623
e84a576 to
1b67e03
Compare
packages/reactive-element/src/decorators/query-assigned-elements.ts
Outdated
Show resolved
Hide resolved
9d83806 to
ff0faa9
Compare
See lit/lit.dev#503 for @link issue.
ff0faa9 to
6283acd
Compare
|
I de-duped the information, and also made sure that it generates correctly on Lit.dev. In the generated docs there is now a link to the interface which contains more context. Thank you! |
aomarks
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great!
Raised in lit/lit.dev#623
This change makes the link to the options object clearer for both queryAssignedElements and queryAssignedNodes.
Initially wanted to link from the
@param optionsjsdoc, but it's not yet supported on Lit.dev.It's easier to document this currently with the TypeScript types and a link in the description documentation. Once lit/lit.dev#503 is addressed we can update this with
@linkand@paramproviding the best of both worlds.Tested manually with lit.dev api generation.
This now shows up like so and the link can be clicked. Information is de-duped:
