Home > @microsoft/api-extractor-model > SourceLocation
SourceLocation class
The source location where a given API item is declared.
Signature:
export declare class SourceLocation
Remarks
The source location points to the .ts
source file where the API item was originally declared. However, in some cases, if source map resolution fails, it falls back to pointing to the .d.ts
file instead.
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)(options) | Constructs a new instance of the SourceLocation class |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
fileUrl | readonly | string | undefined | Returns the file URL to the given source location. Returns undefined if the file URL cannot be determined. |