Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
"husky": "^9.1.7",
"lint-staged": "^17.0.0",
"mock-stdin": "^1.0.0",
"oxfmt": "0.61.0",
"oxfmt": "0.68.0",
"oxlint": "1.82.0",
"oxlint-tsgolint": "0.22.1",
"rimraf": "~6.1.3",
Expand Down
170 changes: 85 additions & 85 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 9 additions & 8 deletions src/lib/command-framework/apify-command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -887,10 +887,9 @@ type ExtractOptionalArgKeys<Cmd extends typeof BuiltApifyCommand> = {
type StaticArgsFlagsInput<Cmd extends typeof BuiltApifyCommand> = Omit<
{
// This ensures we only get the required args
[K in Exclude<
keyof InferArgsFromCommand<Cmd['args']>,
ExtractOptionalArgKeys<Cmd>
> as `args_${string & K}`]: InferArgsFromCommand<Cmd['args']>[K];
[
K in Exclude<keyof InferArgsFromCommand<Cmd['args']>, ExtractOptionalArgKeys<Cmd>> as `args_${string & K}`
]: InferArgsFromCommand<Cmd['args']>[K];
},
// Omit args_json as it is used only to throw an error if the user provides it
'args_json'
Expand All @@ -905,10 +904,12 @@ type StaticArgsFlagsInput<Cmd extends typeof BuiltApifyCommand> = Omit<
Omit<
{
// This ensures we only ever get the required flags into this object, as `key?: type` and `key: type | undefined` are not the same (one is optionally present, the other is mandatory)
[K in Exclude<
keyof InferFlagsFromCommand<Cmd['flags'], true>,
ExtractOptionalFlagKeys<Cmd>
> as `flags_${string & K}`]: InferFlagsFromCommand<Cmd['flags'], true>[K];
[
K in Exclude<
keyof InferFlagsFromCommand<Cmd['flags'], true>,
ExtractOptionalFlagKeys<Cmd>
> as `flags_${string & K}`
]: InferFlagsFromCommand<Cmd['flags'], true>[K];
},
// Omit flags_json as it is used only to throw an error if the user provides it
'flags_json'
Expand Down
Loading