args.d.ts 571 B

1234567891011121314151617
  1. /// <reference types="node" />
  2. import { MethodResult } from './commands/types';
  3. export declare interface Global extends NodeJS.Global {
  4. ignoreUnknownCA: boolean;
  5. }
  6. export declare type MethodArgs = Array<string | ArgsOptions>;
  7. export interface Args {
  8. command: string;
  9. method: (...args: MethodArgs) => Promise<MethodResult>;
  10. options: ArgsOptions;
  11. }
  12. export interface ArgsOptions {
  13. _doubleDashArgs: string[];
  14. _: MethodArgs;
  15. [key: string]: boolean | string | number | MethodArgs | string[];
  16. }
  17. export declare function args(rawArgv: string[]): Args;