Skip to content

Commit

Permalink
Adjusting module exports and adding BrowserTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
kriswest committed Sep 4, 2024
1 parent abcc577 commit 065c0d7
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@

import { DesktopAgent } from './api/DesktopAgent';
import * as BridgingTypes from './bridging/BridgingTypes';
import * as BrowserTypes from './api/BrowserTypes';
//import in order to create a local export that overwrites type exported via ContextTypes
import * as AppIdentifier from './api/AppIdentifier';

export * from './api/AppIdentifier';
export * from './context/ContextTypes';
export { AppIdentifier };
export * from './api/AppIntent';
export * from './api/AppMetadata';
export * from './api/Channel';
Expand All @@ -24,14 +28,17 @@ export * from './api/Methods';
export * from './api/PrivateChannel';
export * from './api/RecommendedChannels';
export * from './api/Types';
export * from './api/Events'

export * from './context/ContextType';
export * from './context/ContextTypes';

export * from './intents/Intents';
export * from './api/Events'

/* Workaround for conflicts between bridging types and API types

/* Workaround for conflicts between bridging types, browser type and API types
and prettier issue with `export * as`. */
export { BridgingTypes };
export { BrowserTypes };

declare global {
interface Window {
Expand Down

0 comments on commit 065c0d7

Please sign in to comment.