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

Function checkPoly

packages/shared/src/utils/polyvinyl.ts:84–86  ·  view source on GitHub ↗
(poly: ChallengeFile)

Source from the content-addressed store, hash-verified

82}
83
84function checkPoly(poly: ChallengeFile) {
85 if (!isPoly(poly)) throw Error('Not a PolyVinyl: ' + JSON.stringify(poly));
86}
87
88// setContent will lose source if not supplied
89export function setContent(

Callers 1

setContentFunction · 0.85

Calls 1

isPolyFunction · 0.85

Tested by

no test coverage detected