Skip to content

[F] getSourceLocation

function getSourceLocation(target, options?): SourceLocation;
ParameterType
targetDiagnosticTarget
options?SourceLocationOptions

SourceLocation

function getSourceLocation(target, options?): undefined;
ParameterType
targettypeof NoTarget | undefined
options?SourceLocationOptions

undefined

function getSourceLocation(target, options?): SourceLocation | undefined;
ParameterType
target| DiagnosticTarget | typeof NoTarget | undefined
options?SourceLocationOptions

SourceLocation | undefined