Skip to content

Commit d5a17bc

Browse files
tylerjusflyIfycode
authored andcommitted
fix: fixed typescript types on cli.ts
1 parent 4acdf7f commit d5a17bc

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/cli.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { help, notRecognised } from './help';
55
import { folderNameMissingOptionPrompt } from './prompts/foldername';
66
import { templateMissingOptionPrompt } from './prompts/template';
77
import { downloadTemplateKit } from './main';
8+
import { Ioptions } from './interfaces';
89

910
let parseArgumentsIntoOptions = (rawArgs: string[]) => {
1011

@@ -62,7 +63,7 @@ let parseArgumentsIntoOptions = (rawArgs: string[]) => {
6263
}
6364
}
6465

65-
let otherOptions = async (options :any) => {
66+
let otherOptions = async (options: Ioptions) => {
6667
if (options.skipInstall) {
6768
options.runInstall = false;
6869
}
@@ -93,7 +94,7 @@ export let cli = async (args: string[]) => {
9394
} else if (options?.version) {
9495
version();
9596
} else {
96-
await otherOptions(options);
97+
await otherOptions(options as Ioptions);
9798
}
9899
} catch (err) {
99100
console.log('');

src/interfaces.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ export type ItemplateOptions = "ts" | "esm" | "cjs";
1010

1111
export interface Ioptions {
1212
skipPrompts: boolean;
13-
git: true;
13+
git: boolean;
1414
skipGit: string | undefined;
1515
folderName: string;
1616
template: ItemplateOptions;
1717
targetDirectory: string;
1818
templateDirectory: string;
19-
runInstall: true;
19+
runInstall: boolean;
2020
skipInstall: boolean;
2121
help: string | boolean;
2222
version: string | boolean;

0 commit comments

Comments
 (0)