snyk
Version:
snyk library and cli utility
20 lines (19 loc) • 625 B
TypeScript
/// <reference types="node" />
/// <reference types="node" />
/// <reference types="node" />
import { MethodResult } from './commands/types';
export declare interface Global extends NodeJS.Global {
ignoreUnknownCA: boolean;
}
export type MethodArgs = Array<string | ArgsOptions>;
export interface Args {
command: string;
method: (...args: MethodArgs) => Promise<MethodResult>;
options: ArgsOptions;
}
export interface ArgsOptions {
_doubleDashArgs: string[];
_: MethodArgs;
[key: string]: boolean | string | number | MethodArgs | string[];
}
export declare function args(rawArgv: string[]): Args;