mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-17 05:02:23 +08:00
Fix types
This commit is contained in:
parent
9663f911a2
commit
4f29a6d4ef
@ -96,6 +96,7 @@ export type State = layout.SubState &
|
||||
globals.SubState &
|
||||
RouterData &
|
||||
API_OptionsData &
|
||||
DeprecatedState &
|
||||
Other;
|
||||
|
||||
export type API = addons.SubAPI &
|
||||
@ -113,6 +114,21 @@ export type API = addons.SubAPI &
|
||||
url.SubAPI &
|
||||
Other;
|
||||
|
||||
interface DeprecatedState {
|
||||
/**
|
||||
* @deprecated use index
|
||||
*/
|
||||
storiesHash: API_IndexHash;
|
||||
/**
|
||||
* @deprecated use previewInitialized
|
||||
*/
|
||||
storiesConfigured: boolean;
|
||||
/**
|
||||
* @deprecated use indexError
|
||||
*/
|
||||
storiesFailed?: Error;
|
||||
}
|
||||
|
||||
interface Other {
|
||||
[key: string]: any;
|
||||
}
|
||||
|
@ -56,19 +56,6 @@ type StoryUpdate = Pick<API_StoryEntry, 'parameters' | 'initialArgs' | 'argTypes
|
||||
export interface SubState extends API_LoadedRefData {
|
||||
storyId: StoryId;
|
||||
viewMode: ViewMode;
|
||||
|
||||
/**
|
||||
* @deprecated use index
|
||||
*/
|
||||
storiesHash: API_IndexHash;
|
||||
/**
|
||||
* @deprecated use previewInitialized
|
||||
*/
|
||||
storiesConfigured: boolean;
|
||||
/**
|
||||
* @deprecated use indexError
|
||||
*/
|
||||
storiesFailed?: Error;
|
||||
}
|
||||
|
||||
export interface SubAPI {
|
||||
|
Loading…
x
Reference in New Issue
Block a user