Skip to content

Commit

Permalink
chore(deps): lock file maintenance (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] authored Nov 14, 2023
1 parent 612c16c commit 114a875
Show file tree
Hide file tree
Showing 5 changed files with 290 additions and 285 deletions.
8 changes: 4 additions & 4 deletions packages/core/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ export class Clerc<C extends Commands = {}, GF extends GlobalFlagOptions = {}> {
return localeObject[name]
? format(localeObject[name], ...args)
: defaultLocaleObject[name]
? format(defaultLocaleObject[name], ...args)
: undefined;
? format(defaultLocaleObject[name], ...args)
: undefined;
},
};
}
Expand Down Expand Up @@ -571,8 +571,8 @@ export class Clerc<C extends Commands = {}, GF extends GlobalFlagOptions = {}> {
command?.name === Root || called === Root
? 0
: called?.length
? called.length
: command?.name.split(" ").length;
? called.length
: command?.name.split(" ").length;
const { _: args, flags, unknownFlags } = parsed;
let parameters =
!isCommandResolved || command.name === Root
Expand Down
8 changes: 4 additions & 4 deletions packages/core/src/types/type-flag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ export type InferFlagType<Flag extends FlagTypeOrSchema> = Flag extends
? T[] | D
: T[]
: Flag extends TypeFunction<infer T> | FlagSchema<TypeFunction<infer T>>
? Flag extends FlagSchemaDefault<TypeFunction<T>, infer D>
? T | D
: T | undefined
: never;
? Flag extends FlagSchemaDefault<TypeFunction<T>, infer D>
? T | D
: T | undefined
: never;
export interface ParsedFlags<Schemas = Record<string, unknown>> {
flags: Schemas;
unknownFlags: Record<string, (string | boolean)[]>;
Expand Down
8 changes: 4 additions & 4 deletions packages/core/src/types/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ type ParameterType<Parameter extends string> = Parameter extends
| `[${infer _ParameterName}...]`
? string[]
: Parameter extends `<${infer _ParameterName}>`
? string
: Parameter extends `[${infer _ParameterName}]`
? string | undefined
: never;
? string
: Parameter extends `[${infer _ParameterName}]`
? string | undefined
: never;

type NonNullableParameters<T extends string[] | undefined> = T extends undefined
? []
Expand Down
6 changes: 3 additions & 3 deletions packages/core/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ export const resolveArgv = (): string[] =>
IS_NODE
? process.argv.slice(IS_ELECTRON ? 1 : 2)
: IS_DENO
? // @ts-expect-error Ignore
Deno.args
: [];
? // @ts-expect-error Ignore
Deno.args
: [];

export function compose(inspectors: Inspector[]) {
const inspectorMap = {
Expand Down
Loading

0 comments on commit 114a875

Please sign in to comment.