forked from yargs/yargs-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(ts)!: move index.js to TypeScript (yargs#292)
BREAKING CHANGE: projects using `@types/yargs-parser` may see variations in type definitions.
- Loading branch information
Showing
7 changed files
with
52 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* global describe, it */ | ||
|
||
import * as yargsParser from '../' | ||
import * as assert from 'assert' | ||
|
||
describe('types', function () { | ||
it('allows a partial options object to be provided', () => { | ||
const argv = yargsParser('--foo 99', { | ||
string: 'foo' | ||
}) | ||
assert.strictEqual(argv.foo, '99') | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
"sourceMap": false | ||
}, | ||
"include": [ | ||
"./*.ts", | ||
"lib/**/*.ts" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
"sourceMap": true | ||
}, | ||
"include": [ | ||
"./*.ts", | ||
"lib/**/*.ts", | ||
"test/**/*.ts" | ||
] | ||
|