Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
84
function
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
89
export
function
setContent(
Callers
1
setContent
Function · 0.85
Calls
1
isPoly
Function · 0.85
Tested by
no test coverage detected