diff --git a/index.d.ts b/index.d.ts index 4f97549..5608d14 100644 --- a/index.d.ts +++ b/index.d.ts @@ -105,7 +105,7 @@ type InferArguments = S extends `${infer First} ${infer Rest}` ? [InferArgument, ...InferArguments>] : [InferArgument]; -type InferCommmandArguments = +type InferCommandArguments = S extends `${string} ${infer Args}` ? InferArguments> : []; type FlagsToFlag = @@ -679,7 +679,7 @@ export class Command { command( nameAndArgs: Usage, opts?: CommandOptions, - ): Command<[...InferCommmandArguments]>; + ): Command<[...InferCommandArguments]>; /** * Define a command, implemented in a separate executable file. *