Skip to content

Commit

Permalink
Fix missing export
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinSchoeler committed Aug 1, 2022
1 parent e709d51 commit 3f1b4ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/ui-contexts/src/DeviceContext.ts
Expand Up @@ -10,8 +10,6 @@ export interface IExperimentalHTMLAudioElement extends HTMLAudioElement {
setSinkId: (sinkId: string) => void;
}

export type DeviceContextValue = EnabledDeviceContextValue | DisabledDeviceContextValue;

type EnabledDeviceContextValue = {
enabled: true;
availableAudioOutputDevices: Device[];
Expand All @@ -29,6 +27,8 @@ type DisabledDeviceContextValue = {
enabled: false;
};

export type DeviceContextValue = EnabledDeviceContextValue | DisabledDeviceContextValue;

export const isDeviceContextEnabled = (context: DeviceContextValue): context is EnabledDeviceContextValue =>
(context as EnabledDeviceContextValue).enabled;

Expand Down
2 changes: 1 addition & 1 deletion packages/ui-contexts/src/index.ts
Expand Up @@ -13,7 +13,7 @@ export { ToastMessagesContext, ToastMessagesContextValue } from './ToastMessages
export { TooltipContext, TooltipContextValue } from './TooltipContext';
export { TranslationContext, TranslationContextValue } from './TranslationContext';
export { UserContext, UserContextValue } from './UserContext';
export { DeviceContext, Device, IExperimentalHTMLAudioElement } from './DeviceContext';
export { DeviceContext, Device, IExperimentalHTMLAudioElement, DeviceContextValue } from './DeviceContext';

export { useAbsoluteUrl } from './hooks/useAbsoluteUrl';
export { useAllPermissions } from './hooks/useAllPermissions';
Expand Down

0 comments on commit 3f1b4ad

Please sign in to comment.