MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / isRepoQuery

Function isRepoQuery

packages/web/src/features/search/ir.ts:30–30  ·  view source on GitHub ↗
(query: QueryIR)

Source from the content-addressed store, hash-verified

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

Callers 1

traverseQueryIRFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected