Rush StackShopBlogEvents
Skip to main content

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

ConstructorModifiersDescription
(constructor)(options)Constructs a new instance of the SourceLocation class

Properties

PropertyModifiersTypeDescription
fileUrlreadonlystring | undefinedReturns the file URL to the given source location. Returns undefined if the file URL cannot be determined.