Skip to content

Commit b1875d3

Browse files
committed
refactor: adjust models
1 parent fc990a6 commit b1875d3

File tree

1 file changed

+4
-9
lines changed
  • packages/nx-plugin/src/executors/internal

1 file changed

+4
-9
lines changed

packages/nx-plugin/src/executors/internal/types.ts

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,13 @@ export type GeneralExecutorOnlyOptions = {
1515
export type ProjectExecutorOnlyOptions = {
1616
projectPrefix?: string;
1717
};
18-
18+
type LooseAutocomplete<T extends string> = T | (string & {});
1919
/**
2020
* CLI types that apply globally for all commands.
2121
*/
22-
export type Command =
23-
| 'collect'
24-
| 'upload'
25-
| 'autorun'
26-
| 'print-config'
27-
| 'compare'
28-
| 'merge-diffs'
29-
| 'history';
22+
export type Command = LooseAutocomplete<
23+
'collect' | 'upload' | 'autorun' | 'print-config' | 'compare' | 'merge-diffs'
24+
>;
3025
export type GlobalExecutorOptions = {
3126
command?: Command;
3227
bin?: string;

0 commit comments

Comments
 (0)