Skip to content

Commit

Permalink
Merge pull request #24206 from storybookjs/norbert/improve-type-of-st…
Browse files Browse the repository at this point in the history
…atusupdate

Types: Allow `null` in value of `experimental_updateStatus` to clear status
(cherry picked from commit 2bf4dc5)
  • Loading branch information
ndelangen authored and storybook-bot committed Sep 19, 2023
1 parent d0dcf7d commit b548171
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/lib/types/src/modules/api-stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ export interface API_StatusObject {
}

export type API_StatusState = Record<StoryId, Record<string, API_StatusObject>>;
export type API_StatusUpdate = Record<StoryId, API_StatusObject>;
export type API_StatusUpdate = Record<StoryId, API_StatusObject | null>;

export type API_FilterFunction = (
item: API_PreparedIndexEntry & { status: Record<string, API_StatusObject | null> }
Expand Down

0 comments on commit b548171

Please sign in to comment.