Small type fix

This commit is contained in:
Tom Coleman 2021-08-30 22:51:17 +10:00
parent 54d3cd06fc
commit 0df595a0e5

View File

@ -5,6 +5,7 @@ import {
StoryContextForLoaders,
Framework,
GlobalAnnotations,
ComponentTitle,
} from '@storybook/csf';
import { StoriesListStore } from './StoriesListStore';
@ -208,10 +209,13 @@ export class StoryStore<TFramework extends Framework> {
getSetStoriesPayload() {
const stories = this.extract();
const kindParameters: Parameters = stories.reduce((acc: Parameters, { title }) => {
const kindParameters: Parameters = stories.reduce(
(acc: Parameters, { title }: { title: ComponentTitle }) => {
acc[title] = {};
return acc;
}, {} as Parameters);
},
{} as Parameters
);
return {
v: 2,