ts-command-line-args
Advanced tools
Comparing version 2.4.2 to 2.5.0
@@ -1,9 +0,5 @@ | ||
export declare type ArgumentConfig<T extends { | ||
[name: string]: any; | ||
}> = { | ||
export declare type ArgumentConfig<T> = { | ||
[P in keyof T]-?: PropertyConfig<T[P]>; | ||
}; | ||
export declare type ArgumentOptions<T extends { | ||
[name: string]: any; | ||
}> = { | ||
export declare type ArgumentOptions<T> = { | ||
[P in keyof T]-?: PropertyOptions<T[P]>; | ||
@@ -106,5 +102,3 @@ }; | ||
} | ||
export interface ArgsParseOptions<T extends { | ||
[name: string]: any; | ||
}> extends UsageGuideOptions { | ||
export interface ArgsParseOptions<T> extends UsageGuideOptions { | ||
/** | ||
@@ -111,0 +105,0 @@ * An array of strings which if present will be parsed instead of `process.argv`. |
{ | ||
"name": "ts-command-line-args", | ||
"version": "2.4.2", | ||
"version": "2.5.0", | ||
"description": "A Typescript wrapper around command-line-args with additional support for markdown usage guide generation", | ||
@@ -63,2 +63,3 @@ "bin": { | ||
"@types/jest": "^27.5.1", | ||
"@types/node": "^16.18.23", | ||
"@types/string-format": "^2.0.0", | ||
@@ -65,0 +66,0 @@ "@typescript-eslint/eslint-plugin": "^5.29.0", |
@@ -1,6 +0,6 @@ | ||
export type ArgumentConfig<T extends { [name: string]: any }> = { | ||
export type ArgumentConfig<T> = { | ||
[P in keyof T]-?: PropertyConfig<T[P]>; | ||
}; | ||
export type ArgumentOptions<T extends { [name: string]: any }> = { | ||
export type ArgumentOptions<T> = { | ||
[P in keyof T]-?: PropertyOptions<T[P]>; | ||
@@ -122,3 +122,3 @@ }; | ||
export interface ArgsParseOptions<T extends { [name: string]: any }> extends UsageGuideOptions { | ||
export interface ArgsParseOptions<T> extends UsageGuideOptions { | ||
/** | ||
@@ -125,0 +125,0 @@ * An array of strings which if present will be parsed instead of `process.argv`. |
@@ -239,3 +239,3 @@ import { IInsertCodeOptions } from '../contracts'; | ||
await insertCode({ fileContent, filePath: `${sampleDirName}/'originalFilePath.ts` }, createOptions()); | ||
} catch (e) { | ||
} catch (e: any) { | ||
error = e; | ||
@@ -242,0 +242,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
794811
86
24
6423