| 28 | export const isLanguageQuery = (query: QueryIR): query is QueryIR & { language: Language } => query.language != null; |
| 29 | export const isConstQuery = (query: QueryIR): query is QueryIR & { const: boolean } => query.const != null; |
| 30 | export const isRepoQuery = (query: QueryIR): query is QueryIR & { repo: Repo } => query.repo != null; |
| 31 | export const isRepoRegexpQuery = (query: QueryIR): query is QueryIR & { repo_regexp: RepoRegexp } => query.repo_regexp != null; |
| 32 | export const isBranchesReposQuery = (query: QueryIR): query is QueryIR & { branches_repos: BranchesRepos } => query.branches_repos != null; |
| 33 | export const isRepoIdsQuery = (query: QueryIR): query is QueryIR & { repo_ids: RepoIds } => query.repo_ids != null; |