MCPcopy Create free account
hub / github.com/TanStack/router / isPlainTypeScriptFile

Function isPlainTypeScriptFile

packages/router-utils/src/ast.ts:53–59  ·  view source on GitHub ↗
(filename: string | undefined)

Source from the content-addressed store, hash-verified

51}
52
53function isPlainTypeScriptFile(filename: string | undefined): boolean {
54 if (!filename) {
55 return false
56 }
57
58 return /\.[cm]?ts(?:$|[?#])/.test(filename)
59}
60
61let generate = _generate
62

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected