Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanTGold committed May 5, 2024
1 parent ef8a775 commit 5ff0513
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/components/attachments-list/attachments-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export const AttachmentsList = withText({

const _renderAttachments = (attachments: Array<KalturaAttachmentAsset>) => {
return attachments.map((attachment: KalturaAttachmentAsset) => {
// @ts-expect-error - TS2345: Argument of type 'import("ui-managers/node_modules/preact/src/index").ComponentChildren' is not assignable to parameter of type 'import("playkit-js-downloads/node_modules/preact/src/index").ComponentChildren'. Type 'bigint' is not assignable to type 'ComponentChildren'.
return _renderDownloadItem(attachment.id, _buildFileName(attachment), attachment.downloadUrl, getIconByFileExt(attachment.fileExt));
});
};
Expand Down
2 changes: 0 additions & 2 deletions src/components/download-overlay/download-overlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ import {createRef} from 'preact';
import {useState, useEffect} from 'preact/hooks';
import {DownloadMetadata} from '../../types';
import {ui} from '@playkit-js/kaltura-player-js';
// @ts-expect-error - will be fixed once will work with new KalturaPlayer types
const {bindActions} = ui.utils;
// @ts-expect-error - will be fixed once will work with new KalturaPlayer types
const overlayActions = ui.reducers.overlay.actions;

const {withEventManager} = KalturaPlayer.ui.Event;
Expand Down
1 change: 1 addition & 0 deletions src/download.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ class Download extends KalturaPlayer.core.BasePlugin {
path: DOWNLOAD
},
onClick: this._handleClick as any,
// @ts-expect-error - TS2322: Type '() => JSXInternal.Element' is not assignable to type 'ComponentClass<Record<string, never>, {}> | FunctionalComponent<Record<string, never>>'.
component: () => {
return <DownloadOverlayButton setRef={this._setPluginButtonRef} />;
},
Expand Down

0 comments on commit 5ff0513

Please sign in to comment.