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

Function isRawConfigQuery

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

Source from the content-addressed store, hash-verified

23
24// Type guards for each query node type
25export const isRawConfigQuery = (query: QueryIR): query is QueryIR & { raw_config: RawConfig } => query.raw_config != null;
26export const isRegexpQuery = (query: QueryIR): query is QueryIR & { regexp: Regexp } => query.regexp != null;
27export const isSymbolQuery = (query: QueryIR): query is QueryIR & { symbol: Symbol } => query.symbol != null;
28export const isLanguageQuery = (query: QueryIR): query is QueryIR & { language: Language } => query.language != null;

Callers 1

traverseQueryIRFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected