Skip to content

Commit c24e9e5

Browse files
committed
Add and use QuerySpec type
1 parent 3e48797 commit c24e9e5

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/config/db-config.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,18 @@ export interface IncludeQueryFilter {
1616

1717
export type QueryFilter = ExcludeQueryFilter | IncludeQueryFilter;
1818

19+
export interface QuerySpec {
20+
name?: string;
21+
uses: string;
22+
}
23+
1924
/**
2025
* Format of the config file supplied by the user.
2126
*/
2227
export interface UserConfig {
2328
name?: string;
2429
"disable-default-queries"?: boolean;
25-
queries?: Array<{
26-
name?: string;
27-
uses: string;
28-
}>;
30+
queries?: QuerySpec[];
2931
"paths-ignore"?: string[];
3032
paths?: string[];
3133

@@ -58,7 +60,7 @@ export interface AugmentationProperties {
5860
/**
5961
* The queries input from the `with` block of the action declaration
6062
*/
61-
queriesInput?: Array<{ uses: string }>;
63+
queriesInput?: QuerySpec[];
6264

6365
/**
6466
* Whether or not the packs input combines with the packs in the config.

0 commit comments

Comments
 (0)