Skip to content

Commit

Permalink
exports types in a different step
Browse files Browse the repository at this point in the history
  • Loading branch information
douglaseel committed Jan 16, 2024
1 parent 05ea0d3 commit 43a7ee0
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,17 @@ export async function createWorker({
/**
* Expose Worker class and related types.
*/
export { Worker, type WorkerSettings, type WorkerLogLevel };
export { Worker };
export type {
WorkerSettings,
WorkerLogLevel,
};

/**
* Expose AiortcMediaStream class and related types.
*/
export {
AiortcMediaStream,
type AiortcMediaStreamConstraints,
type AiortcMediaTrackConstraints,
export { AiortcMediaStream };
export type {
AiortcMediaStreamConstraints,
AiortcMediaTrackConstraints,
};

0 comments on commit 43a7ee0

Please sign in to comment.