Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/rulvar / citationExcerptOf

Function: citationExcerptOf()

ts
function citationExcerptOf(
   resolve, 
   row, 
   window): string | undefined;

Defined in: packages/core/dist/index.d.ts

Resolves one sampled citation's excerpt through the host's pure snapshot resolver. The FIRST cited line failing to resolve returns undefined (an unsupported citation by doctrine); later lines simply end the excerpt (a range past the file's end reads as far as the snapshot goes).

Parameters

ParameterType
resolve(target) => string | undefined
rowPick<CitationAuditRow, "path" | "line" | "endLine">
windownumber

Returns

string | undefined