Öffentliche API zur MathCoach-IDE
jsteuer
2019-12-18 823158ac01636444541e204741bc0ce37fbc9d74
src/Helpers.ts
@@ -47,9 +47,9 @@
     * geloggt.
     * 
     * Anwendungsbeispiel
     *
     *      const MC = new LocalStorageBasedApi();
     *      const contextFile = await MC.ide.getContextFile() // use the api
     *      import { Helpers } from "@mathcoach/ide-api";
     *      const _MC = Helpers.createStorageBasedApi();
     *      const contextFile = await _MC.ide.getContextFile() // use the api
     */
    export function createStorageBasedApi(contextFileExtension: string = "dummy.json"): MathCoach.Api {
        const fileIdentifier = (file: MathCoach.File) => `mock-file://${file.owner}@${file.part}/${file.path}`;