MCPcopy Create free account
hub / github.com/freeCodeCamp/freeCodeCamp / hasTS

Function hasTS

packages/challenge-builder/src/build.ts:178–182  ·  view source on GitHub ↗
(challengeFiles: ChallengeFile[])

Source from the content-addressed store, hash-verified

176};
177
178function hasTS(challengeFiles: ChallengeFile[]) {
179 return challengeFiles.some(
180 challengeFile => challengeFile.ext === 'ts' || challengeFile.ext === 'tsx'
181 );
182}
183
184const isTSConfig = (f: { name: string; ext: string }) =>
185 f.name === 'tsconfig' && f.ext === 'json';

Callers 1

configureTSCompilerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected