From b5070b51b913b67fe6cb15645575d46766ef31b3 Mon Sep 17 00:00:00 2001 From: Jeff Dickey <216188+jdxcode@users.noreply.github.com> Date: Wed, 31 Jan 2018 14:18:51 -0800 Subject: [PATCH] fix: use type aliases --- src/flags.ts | 4 +++- src/index.ts | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/flags.ts b/src/flags.ts index 38d351b..4d51b61 100644 --- a/src/flags.ts +++ b/src/flags.ts @@ -1,3 +1,5 @@ +// tslint:disable interface-over-type-literal + import {AlphabetLowercase, AlphabetUppercase} from './alphabet' export interface DefaultContext { options: IOptionFlag; flags: { [k: string]: string } } @@ -91,5 +93,5 @@ export const defaultFlags = { color: boolean({allowNo: true}), } -export interface Output {[name: string]: any} +export type Output = {[name: string]: any} export type Input = { [P in keyof T]: IFlag } diff --git a/src/index.ts b/src/index.ts index ee9ce47..aa180dc 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,3 +1,5 @@ +// tslint:disable interface-over-type-literal + import * as args from './args' import {OutputArgs, OutputFlags, ParserOutput} from './parse' export {args} @@ -6,7 +8,7 @@ export {flags} export {flagUsages} from './help' import {deps} from './deps' -export interface ParserInput { +export type ParserInput = { flags?: flags.Input args?: args.Input argv?: string[]