MCPcopy Create free account
hub / github.com/codecombat/codecombat / getInteractive

Function getInteractive

ozaria/site/api/interactive.js:8–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6 * @return {Promise<Object>} - Raw Interactive object
7 */
8export const getInteractive = idOrSlug => {
9 if (!idOrSlug) {
10 throw new Error('No slug/id supplied')
11 }
12 return fetchJson(`/db/interactive/${idOrSlug}`)
13}
14
15/**
16 * @typedef {Object} InteractiveList

Callers 2

loadInteractiveFunction · 0.90
fetchIntroContentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected