UNPKG

thebe-core

Version:

Typescript based core functionality for Thebe

15 lines (14 loc) 670 B
import type { IRequireJS } from './requireJsLoader'; /** * Load an amd module locally and fall back to specified CDN if unavailable. * * @param moduleName The name of the module to load.. * @param version The semver range for the module, if loaded from a CDN. * * By default, the CDN service used is cdn.jsdelivr.net. However, this default can be * overridden by specifying another URL via the HTML attribute * "data-jupyter-widgets-cdn" on a script tag of the page. * * The semver range is only used with the CDN. */ export declare function requireLoader(requirejs: IRequireJS, moduleName: string, moduleVersion: string, useCDNOnly?: boolean): Promise<any>;