Skip to content

Commit

Permalink
chore: clean up props object name
Browse files Browse the repository at this point in the history
  • Loading branch information
cgilly2fast committed Sep 3, 2024
1 parent 0eccff0 commit aeae399
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.all-contributorsrc
.github
.eslintrc
.prettierrc
tsconfig.json
Expand All @@ -8,4 +9,4 @@ src/
public/
node_modules/
example/
.vscode/
.vscode/
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-hls-video-player",
"version": "3.2.0",
"version": "3.2.1",
"description": "A simple and easy to use react component for playing an hls live stream",
"main": "./dist/index.js",
"types": "./dist",
Expand Down
4 changes: 2 additions & 2 deletions src/components/ReactHlsPlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ declare global {
}
}

export interface HlsPlayerProps extends React.VideoHTMLAttributes<HTMLVideoElement> {
export interface ReactHlsPlayerProps extends React.VideoHTMLAttributes<HTMLVideoElement> {
hlsConfig?: HlsConfig
playerRef?: RefObject<HTMLVideoElement>
getHLSInstance?: (hls: Hls) => void
src: string
}

const ReactHlsPlayer: React.FC<HlsPlayerProps> = ({
const ReactHlsPlayer: React.FC<ReactHlsPlayerProps> = ({
hlsConfig,
playerRef,
getHLSInstance,
Expand Down
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { default } from './components/ReactHlsPlayer'
export type { HlsPlayerProps } from './components/ReactHlsPlayer'
export type { ReactHlsPlayerProps } from './components/ReactHlsPlayer'

0 comments on commit aeae399

Please sign in to comment.