Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c5a08b8
commit a1ca702
Showing
2 changed files
with
12 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
// https://github.com/getkirby/kql/blob/66abd20093e5656b0f7e6f51ee04f630ab38f2a3/src/Kql/Kql.php#L73 | ||
export type KirbyQueryModel = | ||
export type KirbyQueryModel<T extends string = never> = | ||
| "collection" | ||
| "file" | ||
| "kirby" | ||
| "page" | ||
| "site" | ||
| "user"; | ||
| "user" | ||
| T; | ||
|
||
export type KirbyQuery = | ||
| KirbyQueryModel | ||
| `${KirbyQueryModel}.${string}` | ||
| `${KirbyQueryModel}(${string})`; | ||
export type KirbyQuery<T extends string = never> = | ||
| KirbyQueryModel<T> | ||
| `${KirbyQueryModel<T>}.${string}` | ||
| `${KirbyQueryModel<T>}(${string})`; |