-
Notifications
You must be signed in to change notification settings - Fork 993
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(deno): get yargs working on deno@1.5.x (#1799)
- Loading branch information
Showing
6 changed files
with
23 additions
and
18 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
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 |
---|---|---|
@@ -1,7 +1,11 @@ | ||
// expose types for the benefit of Deno. | ||
import type { | ||
YargsInstance as YargsType, | ||
Arguments, | ||
} from './build/lib/yargs-factory.d.ts'; | ||
declare type ArgsOutput = (string | number)[]; | ||
|
||
export type {Arguments, YargsType}; | ||
// TODO(bcoe): attempt to get the types for YargsInstance working again. | ||
export interface Arguments { | ||
/** Non-option arguments */ | ||
_: ArgsOutput; | ||
/** Arguments after the end-of-options flag `--` */ | ||
'--'?: ArgsOutput; | ||
/** All remaining options */ | ||
[argName: string]: any; | ||
} |