Skip to content

Commit

Permalink
chore(bundle-source): clean up exports
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Aug 17, 2023
1 parent e4ece88 commit a197943
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/bundle-source/src/exports.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
export type * from './types.js';
export type {
BundleOptions,
BundleSource,
BundleSourceResult,
ModuleFormat,
CanonicalFn,
ReadFn,
} from './types.js';
6 changes: 6 additions & 0 deletions packages/bundle-source/src/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import bundleSource from './bundle-source.js';

export default bundleSource;

// eslint-disable-next-line import/export
export * from './exports.js';
2 changes: 2 additions & 0 deletions packages/bundle-source/src/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ export {};
* @typedef {'endoZipBase64' | 'nestedEvaluate' | 'getExport'} ModuleFormat
*/

// The order of these intersections matters, insofar as Typescript treats the
// last one as the "most generic" version of the overloads.
/**
* @typedef { &
* BundleSourceSimple &
Expand Down

0 comments on commit a197943

Please sign in to comment.