Skip to content

Commit d6abc23

Browse files
committed
Upd make follow prev typing as casting
1 parent dc94ce4 commit d6abc23

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/bin.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,10 @@ function args(): {
105105
// App args and options
106106
return {
107107
file: positionals[0] ?? '',
108-
port: parseInt(values.port),
109-
host: values.host,
110-
static: values.static,
111-
middleware: values.middleware,
108+
port: parseInt(values.port as string),
109+
host: values.host as string,
110+
static: values.static as string[],
111+
middleware: values.middleware as string[],
112112
}
113113
} catch (e) {
114114
if ((e as NodeJS.ErrnoException).code === 'ERR_PARSE_ARGS_UNKNOWN_OPTION') {

0 commit comments

Comments
 (0)