Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Vue] Add type inference for Story and Variant slots item state, based on initState #622

Closed
4 tasks done
medfreeman opened this issue Oct 31, 2023 · 0 comments
Closed
4 tasks done
Labels
enhancement: to triage New feature of request pending review by team member

Comments

@medfreeman
Copy link
Contributor

medfreeman commented Oct 31, 2023

Clear and concise description of the problem

As a developer using Histoire I want to add generic type inference to Story and Variant components so that when the initState property is specified, it is reflected into both default and controls slot items state property.

(while preserving the default type of any or Record<string, any> if initState is not specified)

PR: #623

Suggested solution

PR: #623

Alternative

/

Additional context

Screenshot 2023-10-31 at 22 16 21

Validations

@medfreeman medfreeman added the enhancement: to triage New feature of request pending review by team member label Oct 31, 2023
@Akryum Akryum closed this as completed in a430ca4 Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement: to triage New feature of request pending review by team member
Projects
None yet
Development

No branches or pull requests

1 participant