From 7c2d746ac3bdb477415c146f868d4adb57f62928 Mon Sep 17 00:00:00 2001 From: "Marc J. Schmidt" Date: Fri, 25 Nov 2022 22:04:19 +0100 Subject: [PATCH] fix TFlags constraint This makes it compatible with TypeScript 4.8 Before this change, you get an error: ``` node_modules/@oclif/parser/lib/index.d.ts:16:52 - error TS2344: Type 'TFlags' does not satisfy the constraint 'OutputFlags'. 16 }>(argv: string[], options: Input): Output; ~~~~~~ ``` --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 329511b..42972b8 100644 --- a/src/index.ts +++ b/src/index.ts @@ -22,7 +22,7 @@ export type Input = { '--'?: boolean; } -export function parse(argv: string[], options: Input): Output { +export function parse(argv: string[], options: Input): Output { const input = { argv, context: options.context,