From b73863fa0d9bcd8113afc79e464aab4db8b5bcd3 Mon Sep 17 00:00:00 2001 From: wKich Date: Wed, 30 Mar 2022 13:28:45 +0500 Subject: [PATCH] Revert "Play function can only be set at the story level" This reverts commit 85efd3c2c619bd84cc876123b56662982cc6c3ed. --- src/story.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/story.ts b/src/story.ts index 86b60cd..2eea160 100644 --- a/src/story.ts +++ b/src/story.ts @@ -261,6 +261,13 @@ export type ComponentAnnotations< * By defining them each component will have its tab in the args table. */ subcomponents?: Record; + + + + /** + * Function that is executed after the story is rendered. + */ + play?: PlayFunction; }; export type StoryAnnotations<