Conversation
This was referenced Sep 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements RFC 734 with an opt-in
vueCompilerOptions.strictSlotChildrencheck. For example:The slot accepts
Itemchildren with numeric values, including SFC wrappers that render them. A string-valuedItem, an unrelated component, or a native element produces a template diagnostic. Imported aliases and component generic arguments are resolved by TypeScript.Renders<typeof Comp>serves the same purpose as Flow'srenders Comp.| undefinedallows empty content, arrays allow repeated children, and a second type argument can constrain bound props.This Draft targets
v3.4. The documentation PR should land with the tooling release.Details
else. Dynamic slot names and component choices must satisfy each possible slot contract.localTypes.ts/defineHelpermechanism to emit referenced slot helpers and their dependencies.The option defaults to
false;strictTemplatesdoes not enable it.Rendersis exported byvue-component-type-helpers. No Vue runtime or SFC compiler changes are required.Root inference requires generated SFC metadata. Components without it use TypeScript's structural compatibility, and arbitrary render functions do not expose their roots. Unresolved wrapper cycles fail restricted checks. TypeScript's instantiation limits still apply. Implementation notes describe the type model and regression coverage.
Validation
CI passes on Linux, macOS, and Windows at
0e9950245.pnpm test: 233 passed, 4 skipped; 48 suites passed, 1 skipped. Also passed on Node 24 with a 2 GB heap limit.pnpm run lint: 191 passed. Changed files formatted with the rootformatscript.skipLibCheck: false, without Volar ambient helpers, and consumed by a separate Vue project.A separate preparatory commit pins VS Code grammar URLs to the revision matching the existing checksums and removes an unnecessary assertion that failed lint on the base branch.