Add `query` examples with types

Open Beginner friendly
#541 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
62/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Stale
Tech stack
typescript
Domain
documentation

Research direction

Open the shadow DOM chapter and review the existing examples for the query decorators, including @query. Add complete TypeScript samples with valid typings for those examples, then verify that the chapter clearly demonstrates typed usage and that the samples are valid TypeScript.

Written by the indexing model from the issue text.

Description

The shadow DOM chapter includes some examples of using the query decorators (@query etc.) but it doesn't show full TypeScript samples with valid TS typings.

Dominant language
TypeScript
Stars
142
Forks
230
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from lit/lit.dev

All issues in lit/lit.dev

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.