Skip to content

[docs] Update when directive docs to reflect v3 API#1483

Open
julienw wants to merge 1 commit into
lit:mainfrom
julienw:fix-1480-when-docs
Open

[docs] Update when directive docs to reflect v3 API#1483
julienw wants to merge 1 commit into
lit:mainfrom
julienw:fix-1480-when-docs

Conversation

@julienw

@julienw julienw commented Jul 9, 2026

Copy link
Copy Markdown

The when directive passes the type-narrowed condition value to both case functions since lit/lit#4310, but the docs still showed the old signature and example. Update the signature box and example accordingly.

Fixes the website part of #1480

See also the JSDoc change in lit/lit#5360

@google-cla

google-cla Bot commented Jul 9, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

The `when` directive passes the type-narrowed condition value to both
case functions since lit#4310, but the docs still showed the old
signature and example. Update the signature box and example accordingly.

Fixes lit#1480
@julienw julienw force-pushed the fix-1480-when-docs branch from 4889cf8 to 13652fe Compare July 9, 2026 16:12
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.

1 participant