Add errors for removed APIs

This commit is contained in:
Tom Coleman 2021-08-31 16:21:18 +10:00
parent e88f66e958
commit bee50c8149
2 changed files with 16 additions and 0 deletions

View File

@ -432,4 +432,8 @@ Read more here: https://github.com/storybookjs/storybook/blob/master/MIGRATION.m
return Object.values(kinds);
}
raw() {
return this.storyStore.raw();
}
}

View File

@ -234,4 +234,16 @@ export class StoryStore<TFramework extends Framework> {
stories,
};
}
raw() {
throw new Error(
`StoryStore.raw() is no longer implemented. If you were relying on this API, please contact us on Discord.`
);
}
fromId() {
throw new Error(
`StoryStore.fromId() is no longer implemented. If you were relying on this API, please contact us on Discord.`
);
}
}