Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added play to StoryProps
  • Loading branch information
AntarEspadas committed Apr 30, 2023
commit af6ff344adabb230064a228e15b25921ffe9b11c
8 changes: 8 additions & 0 deletions src/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ interface StoriesProps {
}
type Stories = VueComponent<StoriesProps>

import { Meta, StoryObj } from '@storybook/vue3'

/**
* Story that represents a component example.
*
Expand All @@ -59,6 +61,12 @@ interface StoryProps {
* Display name in the UI.
*/
title: string
/**
* Function that is executed after the story is rendered.
*
* Must be defined in a non-setup script
*/
play?: StoryObj<Meta<VueComponent<any>>>['play']
}
type Story = VueComponent<StoryProps>

Expand Down