| 33 | export const isRepoIdsQuery = (query: QueryIR): query is QueryIR & { repo_ids: RepoIds } => query.repo_ids != null; |
| 34 | export const isRepoSetQuery = (query: QueryIR): query is QueryIR & { repo_set: RepoSet } => query.repo_set != null; |
| 35 | export const isFileNameSetQuery = (query: QueryIR): query is QueryIR & { file_name_set: FileNameSet } => query.file_name_set != null; |
| 36 | export const isTypeQuery = (query: QueryIR): query is QueryIR & { type: Type } => query.type != null; |
| 37 | export const isSubstringQuery = (query: QueryIR): query is QueryIR & { substring: Substring } => query.substring != null; |
| 38 | export const isAndQuery = (query: QueryIR): query is QueryIR & { and: And } => query.and != null; |