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
  • Loading branch information
ndelangen committed Sep 18, 2023
2 parents dd144a0 + f395933 commit 2bf4dc5
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 2bf4dc5

Please sign in to comment.