fix types

This commit is contained in:
Norbert de Langen 2022-11-25 09:46:19 +01:00
parent 82906d156e
commit 0b99973bb0
No known key found for this signature in database
GPG Key ID: FD0E78AF9A837762

View File

@ -60,8 +60,7 @@ export class StoryStoreFacade<TRenderer extends Renderer> {
const storyEntries = Object.entries(this.entries);
// Add the kind parameters and global parameters to each entry
const sortableV6: [StoryId, PreparedStory<TRenderer>, Parameters, Parameters][] =
storyEntries.map(([storyId, { type, importPath, ...entry }]) => {
const sortableV6 = storyEntries.map(([storyId, { type, importPath, ...entry }]) => {
const exports = this.csfExports[importPath];
const csfFile = store.processCSFFileWithCache<TRenderer>(
exports,
@ -86,7 +85,7 @@ export class StoryStoreFacade<TRenderer extends Renderer> {
storyLike,
csfFile.meta.parameters,
this.projectAnnotations.parameters || {},
];
] as [StoryId, PreparedStory<TRenderer>, Parameters, Parameters];
});
// NOTE: the sortStoriesV6 version returns the v7 data format. confusing but more convenient!