Skip to content

Commit

Permalink
[#259] Export Player type
Browse files Browse the repository at this point in the history
  • Loading branch information
darkwebdev committed Oct 13, 2023
1 parent 027836a commit 3c98bc1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ebay-video/shaka-player.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ declare module 'shaka-player'
declare module 'shaka-player/dist/shaka-player.ui'
declare module 'shaka-player/dist/shaka-player.ui.debug'

type Player = Record<string, any>
export type Player = Record<string, any>
2 changes: 2 additions & 0 deletions src/ebay-video/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ export type VideoSource = {
src: string;
type?: VideoSourceType
}

export { Player } from './shaka-player'
2 changes: 1 addition & 1 deletion src/ebay-video/video.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import shaka from 'shaka-player/dist/shaka-player.ui'
import { filterByType } from '../common/component-utils'
import { EbayIcon } from '../ebay-icon'
import { EbayProgressSpinner } from '../ebay-progress-spinner'
import { VideoAction, VideoPlayView } from './types'
import { Player, VideoAction, VideoPlayView } from './types'
import EbayVideoSource from './source'
import { defaultVideoConfig, ERROR_ANOTHER_LOAD, ERROR_NO_PLAYER } from './const'
import { customControls } from './controls'
Expand Down

0 comments on commit 3c98bc1

Please sign in to comment.