Skip to content

fix(ssr-dom-shim): Add stubs for TS 6.0.3 compatibility - #5330

Merged
rictic merged 2 commits into
lit:mainfrom
cecilyhunt:ts-603-fixes
May 12, 2026
Merged

rictic merged 2 commits into
lit:mainfrom
cecilyhunt:ts-603-fixes

Conversation

@cecilyhunt

Copy link
Copy Markdown
Contributor

Adds missing stubs to ssr-dom-shim for:

  • CustomElementRegistry.prototype.initialize
  • CSSRule.MARGIN_RULE

Without these stubs lit will not build with TS 6.0.3.

Adds missing stubs to ssr-dom-shim for:
- CustomElementRegistry.prototype.initialize
- CSSRule.MARGIN_RULE
@cecilyhunt
cecilyhunt requested a review from kevinpschaaf as a code owner May 11, 2026 23:19
@changeset-bot

changeset-bot Bot commented May 11, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: f29d6b7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@lit-labs/ssr-dom-shim Patch

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

@rictic
rictic self-requested a review May 11, 2026 23:51
Add stubs to ensure compatibility with TypeScript 6.0.3.
@rictic
rictic enabled auto-merge (squash) May 12, 2026 00:14
@rictic
rictic merged commit 077a4b7 into lit:main May 12, 2026
7 of 8 checks passed
@lit-robot lit-robot mentioned this pull request May 14, 2026
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