MCPcopy
hub / github.com/webfansplz/vuejs-challenges / resolveInfo

Function resolveInfo

scripts/loader.ts:51–56  ·  view source on GitHub ↗
(quiz: Quiz, locale: string = defaultLocale)

Source from the content-addressed store, hash-verified

49}
50
51export function resolveInfo(quiz: Quiz, locale: string = defaultLocale) {
52 const info = Object.assign({}, quiz.info![defaultLocale], quiz.info![locale])
53 if (typeof info.tags === "string")
54 info.tags = info.tags.split(",").map((i: string) => i.trim()).filter(Boolean)
55 return <QuizMetaInfo>info
56}
57
58export function loadInfo(s: string): Partial<QuizMetaInfo> | undefined {
59 const object = YAML.load(s) as Record<string, unknown>

Callers 9

generateShareAnswerLinkFunction · 0.90
quizToBadgeFunction · 0.90
getAllTagsFunction · 0.90
getQuizesByTagFunction · 0.90
insertInfoToREADMEFunction · 0.90
updateIndexREADMEFunction · 0.90
getChallengesByTagsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected