Skip to content

Commit c0847d6

Browse files
committed
Add a type annotation for inputs.
1 parent 88b72bf commit c0847d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function codeFromUrl(url: URL): string | null {
99
async function main(): Promise<void> {
1010
// Expected invocation is `node path/to/index.js $url`. If $url is "-" or
1111
// there are no arguments, read from STDIN.
12-
let inputs
12+
let inputs: AsyncIterable<string>
1313
if (
1414
process.argv.length < 3 ||
1515
(process.argv.length === 3 && process.argv[2] === "-")

0 commit comments

Comments
 (0)