From 4787cb682d7e304a677a780303f9c8701a8660d0 Mon Sep 17 00:00:00 2001 From: "Marc J. Schmidt" Date: Fri, 25 Nov 2022 22:07:10 +0100 Subject: [PATCH] fix parse F constraint This makes it compatible with TypeScript 4.8 before this change you get an error: ``` packages/app/node_modules/@oclif/command/lib/command.d.ts:70:31 - error TS2344: Type 'F' does not satisfy the constraint 'Output'. 70 }>(options?: Parser.Input, argv?: string[]): Parser.Output; ~ ``` --- src/command.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/command.ts b/src/command.ts index a765ddb4..014ebddc 100644 --- a/src/command.ts +++ b/src/command.ts @@ -156,7 +156,7 @@ export default abstract class Command { if (this._helpOverride()) return this._help() } - protected parse(options?: Parser.Input, argv = this.argv): Parser.Output { + protected parse(options?: Parser.Input, argv = this.argv): Parser.Output { if (!options) options = this.constructor as any return require('@oclif/parser').parse(argv, {context: this, ...options}) }