mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
Update tests for yargs
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
/// <reference types="node" />
|
||||
|
||||
import yargs = require('yargs');
|
||||
import yargsSingleton = require('yargs/yargs');
|
||||
|
||||
import * as fs from 'fs';
|
||||
import * as path from 'path';
|
||||
@@ -1055,3 +1056,15 @@ function Argv$fallbackToUnknownForUnknownOptions() {
|
||||
const x: string = yargs.argv.x;
|
||||
return x;
|
||||
}
|
||||
|
||||
function Argv$exit() {
|
||||
yargs.exit(1, new Error("oh no"));
|
||||
}
|
||||
|
||||
function Argv$parsed() {
|
||||
const parsedArgs = yargs.parsed;
|
||||
}
|
||||
|
||||
function makeSingleton() {
|
||||
yargsSingleton(process.argv.slice(2));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user