UNPKG

@openlearning/imscc-packager

Version:

Package JSON course structure into an IMSCC package

15 lines (14 loc) 776 B
import { default as JSZip } from 'jszip'; import { ImsResource } from './coursePackager/manifest/types'; import { Config, Page, ResourcePage, ResourceType } from './types'; export declare const DOCUMENT_GENERATORS: Record<ResourceType, (page: Page, id: string, options?: Config) => { ext: string; content: string; }>; export declare const pageResource: (page: ResourcePage) => ImsResource; export declare const nextFilePath: (filenames: Set<string>, pathPrefix: string, fileTitle: string, ext: string) => string; export declare const addPage: (zip: JSZip, page: Page, modulePrefix: string, files: { content: Set<string>; attachments: Set<string>; activities: Set<string>; }, globalDependencies: ImsResource[], options: Config | undefined) => ResourcePage;