$ cnpm install @types/yargs-unparser
npm install --save @types/yargs-unparser
This package contains type definitions for yargs-unparser (https://github.com/yargs/yargs-unparser#readme).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/yargs-unparser.
// Type definitions for yargs-unparser 2.0
// Project: https://github.com/yargs/yargs-unparser#readme
// Definitions by: Anton Golub <https://github.com/antongolub>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace yargsUnparser {
type Argv = string[];
interface Arguments {
_: string[];
[argName: string]: any;
}
interface UnparserOptions {
alias?: Record<string, string[]> | undefined;
default?: Record<string, string> | undefined;
command?: string | undefined;
}
interface Unparser {
(args: Arguments, opts?: UnparserOptions): Argv;
}
}
declare var yargsUnparser: yargsUnparser.Unparser;
export = yargsUnparser;
These definitions were written by Anton Golub.
Copyright 2013 - present © cnpmjs.org | Home |