Skip to content

Commit

Permalink
Merge pull request #27180 from sni-J/23232-27088-compatible-string-im…
Browse files Browse the repository at this point in the history
…plementation-fix

Types: Fix type implementation for `CompatibleString`
  • Loading branch information
valentinpalkovic committed May 22, 2024
2 parents 9986a78 + 739cf3b commit 0616c33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/lib/types/src/modules/core-common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -582,4 +582,4 @@ export interface CoreCommon_StorybookInfo {
* const framework: Framework = '@storybook/nextjs'; // valid and will be autocompleted
* const framework: Framework = path.dirname(require.resolve(path.join("@storybook/nextjs", "package.json"))) // valid
*/
export type CompatibleString<T extends string> = T | (string & Record<string, never>);
export type CompatibleString<T extends string> = T | (string & {});

0 comments on commit 0616c33

Please sign in to comment.