MCPcopy Index your code
hub / github.com/angular/angular / isTypeScriptFile

Function isTypeScriptFile

packages/language-service/src/utils/index.ts:407–409  ·  view source on GitHub ↗
(fileName: string)

Source from the content-addressed store, hash-verified

405}
406
407export function isTypeScriptFile(fileName: string): boolean {
408 return /\.[cm]?tsx?$/i.test(fileName);
409}
410
411export function isExternalTemplate(fileName: string): boolean {
412 return !isTypeScriptFile(fileName);

Callers 15

getScriptInfoMethod · 0.90
withFallbackFunction · 0.90
getSyntacticDiagnosticsFunction · 0.90
getSuggestionDiagnosticsFunction · 0.90
getSemanticDiagnosticsFunction · 0.90
getCodeFixesAtPositionFunction · 0.90
getOutliningSpansFunction · 0.90

Calls 1

testMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…