Skip to content

Commit

Permalink
feat(bundle-source): Specific ModuleFormat type (#2767)
Browse files Browse the repository at this point in the history
This surfaces invalid bundle formats with a TypeScript string enum.
  • Loading branch information
kriskowal authored Mar 31, 2021
1 parent d17a951 commit 6fe2ff7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/bundle-source/src/types.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
/**
* @typedef {'getExport' | 'nestedEvaluate' | 'endoZipBase64'} ModuleFormat
*/

/**
* @callback BundleSource
* @param {string} startFilename - the filepath to start the bundling from
* @param {string=} moduleFormat
* @param {ModuleFormat=} moduleFormat
* @param {Object=} powers
*/

0 comments on commit 6fe2ff7

Please sign in to comment.