🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

@types/args

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/args - npm Package Compare versions

Comparing version

to
3.0.1

40

args/index.d.ts

@@ -24,36 +24,36 @@ // Type definitions for args 3.0

interface MriOptions {
args?: string[];
args?: string[] | undefined;
alias?: {
[key: string]: string | string[]
};
boolean?: string | string[];
} | undefined;
boolean?: string | string[] | undefined;
default?: {
[key: string]: any
};
string?: string | string[];
unknown?: (param: string) => boolean;
} | undefined;
string?: string | string[] | undefined;
unknown?: ((param: string) => boolean) | undefined;
}
interface MinimistOptions {
string?: string | string[];
boolean?: boolean | string | string[];
string?: string | string[] | undefined;
boolean?: boolean | string | string[] | undefined;
alias?: {
[key: string]: string | string[]
};
} | undefined;
default?: {
[key: string]: any
};
stopEarly?: boolean;
"--"?: boolean;
unknown?: (param: string) => boolean;
} | undefined;
stopEarly?: boolean | undefined;
"--"?: boolean | undefined;
unknown?: ((param: string) => boolean) | undefined;
}
interface ConfigurationOptions {
help?: boolean;
name?: string;
version?: boolean;
usageFilter?: (output: any) => any;
value?: string;
help?: boolean | undefined;
name?: string | undefined;
version?: boolean | undefined;
usageFilter?: ((output: any) => any) | undefined;
value?: string | undefined;
mri: MriOptions;
minimist?: MinimistOptions;
minimist?: MinimistOptions | undefined;
mainColor: string | string[];

@@ -66,3 +66,3 @@ subColor: string | string[];

description: string;
init?: OptionInitFunction;
init?: OptionInitFunction | undefined;
defaultValue?: any;

@@ -69,0 +69,0 @@ }

{
"name": "@types/args",
"version": "3.0.0",
"version": "3.0.1",
"description": "TypeScript definitions for args",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/args",
"license": "MIT",

@@ -14,10 +15,12 @@ "contributors": [

"main": "",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/args"
},
"scripts": {},
"dependencies": {},
"typesPublisherContentHash": "4f2f0f2b82a3f1dc76dcb84941c3c3e4e52909ede77c6dbe53250d4993cda126",
"typeScriptVersion": "2.0"
"typesPublisherContentHash": "c3f2db93ae86f3eeb5b5b4b68c3842092e583800ccec11b8ebf2c80a673641ed",
"typeScriptVersion": "3.6"
}

@@ -8,6 +8,82 @@ # Installation

# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/args
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/args.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/args/index.d.ts)
````ts
// Type definitions for args 3.0
// Project: https://github.com/leo/args#readme
// Definitions by: Slessi <https://github.com/Slessi>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
Additional Details
* Last updated: Tue, 31 Oct 2017 21:07:56 GMT
declare const c: args;
export = c;
interface args {
sub: string[];
option(name: string | [string, string], description: string, defaultValue?: any, init?: OptionInitFunction): args;
options(list: Option[]): args;
command(name: string, description: string, init?: (name: string, sub: string[], options: ConfigurationOptions) => void, aliases?: string[]): args;
example(usage: string, description: string): args;
examples(list: Example[]): args;
parse(argv: string[], options?: ConfigurationOptions): { [key: string]: any };
showHelp(): void;
}
type OptionInitFunction = (value: any) => any;
interface MriOptions {
args?: string[] | undefined;
alias?: {
[key: string]: string | string[]
} | undefined;
boolean?: string | string[] | undefined;
default?: {
[key: string]: any
} | undefined;
string?: string | string[] | undefined;
unknown?: ((param: string) => boolean) | undefined;
}
interface MinimistOptions {
string?: string | string[] | undefined;
boolean?: boolean | string | string[] | undefined;
alias?: {
[key: string]: string | string[]
} | undefined;
default?: {
[key: string]: any
} | undefined;
stopEarly?: boolean | undefined;
"--"?: boolean | undefined;
unknown?: ((param: string) => boolean) | undefined;
}
interface ConfigurationOptions {
help?: boolean | undefined;
name?: string | undefined;
version?: boolean | undefined;
usageFilter?: ((output: any) => any) | undefined;
value?: string | undefined;
mri: MriOptions;
minimist?: MinimistOptions | undefined;
mainColor: string | string[];
subColor: string | string[];
}
interface Option {
name: string | [string, string];
description: string;
init?: OptionInitFunction | undefined;
defaultValue?: any;
}
interface Example {
usage: string;
description: string;
}
````
### Additional Details
* Last updated: Wed, 07 Jul 2021 21:44:31 GMT
* Dependencies: none

@@ -17,2 +93,2 @@ * Global values: none

# Credits
These definitions were written by Slessi <https://github.com/Slessi>.
These definitions were written by [Slessi](https://github.com/Slessi).

Sorry, the diff of this file is not supported yet