@waiting/shared-core
Advanced tools
Comparing version 23.5.1 to 23.6.0
import minimist from 'minimist'; | ||
export declare function retrieveArgsFromProcess(processArgv?: string[]): minimist.ParsedArgs; | ||
export declare function retrieveArgsFromProcess<T extends minimist.ParsedArgs = minimist.ParsedArgs>(processArgv?: string[]): T; | ||
//# sourceMappingURL=cli.d.ts.map |
{ | ||
"name": "@waiting/shared-core", | ||
"author": "waiting", | ||
"version": "23.5.1", | ||
"version": "23.6.0", | ||
"description": "node core function re export with Promise or Observable", | ||
@@ -33,6 +33,6 @@ "keywords": [ | ||
"dependencies": { | ||
"@waiting/shared-types": "^23.4.0", | ||
"@waiting/shared-types": "^23.6.0", | ||
"minimist": "^1.2.8", | ||
"semver": "^7.6.0", | ||
"zx": "^8.0.1" | ||
"zx": "^8.0.2" | ||
}, | ||
@@ -80,3 +80,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "429a8d662eb074a862354692fa5975e57b28c00a" | ||
"gitHead": "8c2868045846f7045fe02fe9fac8f66d8994ffc5" | ||
} |
import minimist from 'minimist' | ||
export function retrieveArgsFromProcess(processArgv: string[] = process.argv): minimist.ParsedArgs { | ||
export function retrieveArgsFromProcess<T extends minimist.ParsedArgs = minimist.ParsedArgs>(processArgv: string[] = process.argv): T { | ||
const ps = processArgv.slice(2) | ||
const argv = minimist(ps) | ||
return argv | ||
return argv as T | ||
} | ||
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
140225
Updatedzx@^8.0.2