Skip to content

Commit 0d57363

Browse files
authoredMar 10, 2020
chore(gatsby-cli): Tweak init-starter types (#22141)
1 parent e3bad77 commit 0d57363

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed
 

‎packages/gatsby-cli/src/init-starter.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,14 @@ import isTTY from "./util/is-tty"
1717
const spawnWithArgs = (
1818
file: string,
1919
args: string[],
20-
options?: any
20+
options?: execa.Options
2121
): execa.ExecaChildProcess =>
2222
execa(file, args, { stdio: `inherit`, preferLocal: false, ...options })
2323

24-
const spawn = (cmd: string, options?: any): execa.ExecaChildProcess => {
24+
const spawn = (
25+
cmd: string,
26+
options?: execa.Options
27+
): execa.ExecaChildProcess => {
2528
const [file, ...args] = cmd.split(/\s+/)
2629
return spawnWithArgs(file, args, options)
2730
}

0 commit comments

Comments
 (0)
Please sign in to comment.