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

CSF: Fix type hint for StoryObj type #25497

Merged
merged 1 commit into from
Jan 8, 2024

Conversation

nkabrown
Copy link
Contributor

@nkabrown nkabrown commented Jan 7, 2024

Type hints for StoryObj inform that stories in CSFv3 are objects and not functions.

What I did

I updated an internal code comment "Story function that represents a CSFv3 component example" to "Story object that represents a CSFv3 component example".

Testing

This is a change that impacts type hinting and code documentation only.

Manual testing

This is a change that impacts type hinting and code documentation only.

Checklist for Maintainers

  • When this PR is ready for testing, make sure to add ci:normal, ci:merged or ci:daily GH label to it to run a specific set of sandboxes. The particular set of sandboxes can be found in code/lib/cli/src/sandbox-templates.ts

  • Make sure this PR contains one of the labels below:

    Available labels
    • bug: Internal changes that fixes incorrect behavior.
    • maintenance: User-facing maintenance tasks.
    • dependencies: Upgrading (sometimes downgrading) dependencies.
    • build: Internal-facing build tooling & test updates. Will not show up in release changelog.
    • cleanup: Minor cleanup style change. Will not show up in release changelog.
    • documentation: Documentation only changes. Will not show up in release changelog.
    • feature request: Introducing a new feature.
    • BREAKING CHANGE: Changes that break compatibility in some way with current major version.
    • other: Changes that don't fit in the above categories.

Type hints for StoryObj inform that stories in CSFv3 are objects and not
functions.
@shilman shilman added documentation typescript csf ci:docs Run the CI jobs for documentation checks only. labels Jan 8, 2024
@shilman shilman self-assigned this Jan 8, 2024
@shilman shilman changed the title Fix type hint for StoryObj type CSF: Fix type hint for StoryObj type Jan 8, 2024
@shilman shilman merged commit 6302cc6 into storybookjs:next Jan 8, 2024
17 of 23 checks passed
@nkabrown nkabrown deleted the csfv3-story-object branch January 8, 2024 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci:docs Run the CI jobs for documentation checks only. csf documentation typescript
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants