Repository navigation
feat(docs): List props inherited from other components' Props in component APIs - #117
Merged
Merged
Conversation
…onent APIs Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
🦋 Changeset detectedLatest commit: 5063bd3 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
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 |
@layerstack/docs
@layerstack/svelte-actions
@layerstack/svelte-state
@layerstack/svelte-stores
@layerstack/svelte-table
@layerstack/tailwind
@layerstack/utils
commit: |
Contributor
built with Refined Cloudflare Pages Action⚡ Cloudflare Pages Deployment
|
Merged
This branch was successfully deployed
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.
Component APIs now list the props a component takes through another component's Props, ex.
Points'PointsProps = PointsPropsWithoutHTML & Omit<Without<CircleProps, PointsPropsWithoutHTML>, 'ref'>, whosez,class,cx, ... were missing.Omit/Without/Pick/Partial/ ...) is resolved with the type checker, and its props added withinheritedFrom(ex."Circle"). DOM/SVG attributes (fromsvelte/elements/ the DOM typings) and props the component already declares are left out.moduleResolution: Bundler, so./X.shared.svelte.jsis its.ts) and maps SvelteKit's$libto the nearestsrc/lib. Unresolved,$lib'sWithoutwasany, collapsing the whole intersection toany.…PropsWithoutHTML(ex. insideWithout<…>) is no longer skipped as if it were the base type; wrapped Props are named for the Props they wrap (CircleProps, notOmit), withinherited: true.llms: API tables list a component's own props, then a line per component it inherits from.Checked against LayerChart: regenerating every core and
@layerchart/webglAPI, no existing prop is removed or changed; 22 composed components gain their inherited props (ex.PointsfromCircle,LabelsfromText, the charts fromChart).🤖 Generated with Claude Code