Skip to content

Commit 0faa944

Browse files
authored
chore: update outdated docs and create-package template (#2909)
* fix readme param name * explicit type exports for lg create
1 parent 518ce41 commit 0faa944

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tools/create/src/templates/component/src/Component/component.index.template.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ export const componentIndex = ({
44
packageNamePascal,
55
}: Pick<TemplateParameters, 'packageNamePascal'>) => `
66
export { ${packageNamePascal} } from './${packageNamePascal}';
7-
export { ${packageNamePascal}Props } from './${packageNamePascal}.types';
7+
export { type ${packageNamePascal}Props } from './${packageNamePascal}.types';
88
`;

tools/create/src/templates/component/src/index.template.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ import { TemplateParameters } from '../../../create.types';
33
export const index = ({
44
packageNamePascal,
55
}: Pick<TemplateParameters, 'packageNamePascal'>) =>
6-
`export { ${packageNamePascal}, ${packageNamePascal}Props } from './${packageNamePascal}';`;
6+
`export { ${packageNamePascal}, type ${packageNamePascal}Props } from './${packageNamePascal}';`;

tools/storybook-decorators/src/decorators/PropCombinations/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const meta: StoryMeta<typeof Button> = {
5353
...
5454
parameters: {
5555
generate: {
56-
stories: ['LargeSize', 'DefaultSize'],
56+
storyNames: ['LargeSize', 'DefaultSize'],
5757
combineArgs: { ... },
5858
},
5959
}

0 commit comments

Comments
 (0)