@innovatorved/code-lab 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * TypeScript Definitions for @innovatorved/code-lab v1.4.0
2
+ * TypeScript Definitions for @innovatorved/code-lab v2.0.0
3
3
  */
4
4
 
5
5
  export interface CodeLabStep {
@@ -276,6 +276,7 @@ export interface CodeLabRuntimeAPI {
276
276
  preloadNpmPackages(files?: Record<string, string>, onProgress?: (pkg: string) => void): Promise<Record<string, string>>;
277
277
  preloadNpmPackages(files: Record<string, string> | undefined, existingCache: Map<string, string>, onProgress?: (pkg: string) => void): Promise<Record<string, string>>;
278
278
  transpileTS(source: string, filename?: string): string;
279
+ transpileForBrowser(source: string, filename?: string): string;
279
280
  createVirtualFs(initialFiles?: Record<string, string>): any;
280
281
  createVirtualHttp(resourceTracker?: any, sharedTrace?: any[], activePortTable?: any): any;
281
282
  createVirtualNet(resourceTracker?: any, sharedTrace?: any[], activePortTable?: any): any;
@@ -288,6 +289,7 @@ export declare const executeInWorker: CodeLabRuntimeAPI['executeInWorker'];
288
289
  export declare const cancelWorkerExecution: CodeLabRuntimeAPI['cancelWorkerExecution'];
289
290
  export declare const preloadNpmPackages: CodeLabRuntimeAPI['preloadNpmPackages'];
290
291
  export declare const transpileTS: CodeLabRuntimeAPI['transpileTS'];
292
+ export declare const transpileForBrowser: CodeLabRuntimeAPI['transpileForBrowser'];
291
293
  export declare const createVirtualFs: CodeLabRuntimeAPI['createVirtualFs'];
292
294
  export declare const createVirtualHttp: CodeLabRuntimeAPI['createVirtualHttp'];
293
295
  export declare const createVirtualNet: CodeLabRuntimeAPI['createVirtualNet'];