typedoc
Version:
Create api documentation for TypeScript projects.
35 lines (34 loc) • 1.02 kB
TypeScript
import type { Deserializer } from "../../serialization/deserializer.js";
import type { SourceReference as JSONSourceReference } from "../../serialization/schema.js";
/**
* Represents references of reflections to their defining source files.
*
* @see {@link DeclarationReflection.sources}
*/
export declare class SourceReference {
/**
* The filename of the source file.
*/
fileName: string;
/**
* The absolute filename of the source file.
* @internal
*/
fullFileName: string;
/**
* The one based number of the line that emitted the declaration.
*/
line: number;
/**
* The index of the character that emitted the declaration.
*/
character: number;
/**
* URL for displaying the source file.
*/
url?: string;
constructor(fileName: string, line: number, character: number);
equals(other: SourceReference): boolean;
toObject(): JSONSourceReference;
fromObject(_de: Deserializer, obj: JSONSourceReference): void;
}