Skip to content

Commit

Permalink
fix: StartTemplate type incorrectly referenced VANILLA_TEMPLATES
Browse files Browse the repository at this point in the history
…array
  • Loading branch information
Tommypop2 committed Jan 24, 2025
1 parent ac28905 commit bf23a8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/create/src/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ export async function create(args: CreateVanillaArgs, js: boolean, isStart: fals
export async function create(args: CreateStartArgs, js: boolean, isStart: true): Promise<void>;
export async function create(args: CreateVanillaArgs | CreateStartArgs, js: boolean, isStart: boolean) {
if (isStart) {
return createStart(args, js);
return createStart(args as CreateStartArgs, js);
} else {
return createVanilla(args, js);
return createVanilla(args as CreateVanillaArgs, js);
}
}
2 changes: 1 addition & 1 deletion packages/create/src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const START_TEMPLATES = [
"with-vitest",
"experiments",
] as const;
export type StartTemplate = (typeof VANILLA_TEMPLATES)[number];
export type StartTemplate = (typeof START_TEMPLATES)[number];

export const getTemplatesList = async (isStart: boolean) => {
if (isStart) {
Expand Down

0 comments on commit bf23a8d

Please sign in to comment.