Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Commit

Permalink
fix: typescript compliation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Nov 18, 2021
1 parent 8e5a84e commit bba144d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"lint": "eslint . --ext .ts --config .eslintrc",
"posttest": "yarn lint",
"prepublishOnly": "yarn run build",
"test": "mocha --forbid-only \"test/**/*.test.ts\"",
"test": "mocha --no-color --forbid-only \"test/**/*.test.ts\"",
"version": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md",
"pretest": "yarn build --noEmit && tsc -p test --noEmit"
},
Expand Down
6 changes: 3 additions & 3 deletions src/parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ try {
debug = () => {}
}

export type OutputArgs<T extends ParserInput['args']> = { [P in keyof T]: any }
export type OutputArgs = { [name: string]: any }
export type OutputFlags<T extends ParserInput['flags']> = { [P in keyof T]: any }
export type ParserOutput<TFlags extends OutputFlags<any>, TArgs extends OutputArgs<any>> = {
export type ParserOutput<TFlags extends OutputFlags<any>, TArgs extends OutputArgs> = {
flags: TFlags;
args: TArgs;
argv: string[];
Expand All @@ -48,7 +48,7 @@ export interface ParserInput {
'--'?: boolean;
}

export class Parser<T extends ParserInput, TFlags extends OutputFlags<T['flags']>, TArgs extends OutputArgs<T['args']>> {
export class Parser<T extends ParserInput, TFlags extends OutputFlags<T['flags']>, TArgs extends OutputArgs> {
private readonly argv: string[]

private readonly raw: ParsingToken[] = []
Expand Down

0 comments on commit bba144d

Please sign in to comment.