Skip to content

Commit

Permalink
change: Change from type annotations to satisfies when generate new s…
Browse files Browse the repository at this point in the history
…tory file
  • Loading branch information
syuna353 committed Jun 5, 2024
1 parent 03ef5c6 commit 137cade
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe('typescript', () => {
type Story = StoryObj<typeof meta>;
export const Default: Story = {};"
export const Default = {} satisfies Story;"
`);
});

Expand All @@ -50,7 +50,7 @@ describe('typescript', () => {
type Story = StoryObj<typeof meta>;
export const Default: Story = {};"
export const Default = {} satisfies Story;"
`);
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ export async function getTypeScriptTemplateForNewStoryFile(data: TypeScriptTempl
type Story = StoryObj<typeof meta>;
export const ${data.exportedStoryName}: Story = {};
export const ${data.exportedStoryName} = {} satisfies Story;
`;
}

0 comments on commit 137cade

Please sign in to comment.