Skip to content

Commit 5aabbfb

Browse files
Fix typo in index.d.ts (#441)
Co-authored-by: Sindre Sorhus <[email protected]>
1 parent cae090f commit 5aabbfb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

index.d.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,9 +432,15 @@ declare const execa: {
432432
console.log(stdout);
433433
//=> 'unicorns'
434434
435+
435436
// Cancelling a spawned process
437+
436438
const subprocess = execa('node');
437-
setTimeout(() => { spawned.cancel() }, 1000);
439+
440+
setTimeout(() => {
441+
subprocess.cancel()
442+
}, 1000);
443+
438444
try {
439445
await subprocess;
440446
} catch (error) {

0 commit comments

Comments
 (0)