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

Function canBuildChallenge

packages/challenge-builder/src/build.ts:102–105  ·  view source on GitHub ↗
(challengeData: BuildChallengeData)

Source from the content-addressed store, hash-verified

100};
101
102export function canBuildChallenge(challengeData: BuildChallengeData): boolean {
103 const { challengeType } = challengeData;
104 return Object.prototype.hasOwnProperty.call(buildFunctions, challengeType);
105}
106
107export async function buildChallenge(
108 challengeData: BuildChallengeData,

Callers 2

previewChallengeSagaFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected