Connectum API Reference / @connectum/cli / commands/proto-sync / parseTimeoutOption
Function: parseTimeoutOption() ​
parseTimeoutOption(
raw):number|undefined
Defined in: commands/proto-sync.ts:124
Parse the --timeout value. Anything but a plain positive integer (0, -5, 1.5, abc, 10s) is refused rather than coerced, so a typo cannot silently become "no limit".
Parameters ​
raw ​
string | undefined
Returns ​
number | undefined