diff --git a/src/parse.ts b/src/parse.ts index d61c42c..b21571c 100644 --- a/src/parse.ts +++ b/src/parse.ts @@ -1,3 +1,5 @@ +// tslint:disable interface-over-type-literal + import * as _ from 'lodash' import {Arg} from './args' @@ -17,15 +19,15 @@ try { export type OutputArgs = { [P in keyof T]: any } export type OutputFlags = { [P in keyof T]: any } -export interface ParserOutput, TArgs extends OutputArgs> { +export type ParserOutput, TArgs extends OutputArgs> = { flags: TFlags args: TArgs argv: string[] raw: ParsingToken[] } -export interface ArgToken { type: 'arg'; input: string } -export interface FlagToken { type: 'flag'; flag: string; input: string } +export type ArgToken = { type: 'arg'; input: string } +export type FlagToken = { type: 'flag'; flag: string; input: string } export type ParsingToken = ArgToken | FlagToken export interface ParserInput {