Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

showProgressLoadBar mentioned as prop, but not in index.ts.d #440

Open
Thijmen opened this issue Nov 11, 2021 · 0 comments
Open

showProgressLoadBar mentioned as prop, but not in index.ts.d #440

Thijmen opened this issue Nov 11, 2021 · 0 comments

Comments

@Thijmen
Copy link

Thijmen commented Nov 11, 2021

Version

4.24.2

Description

showProgressLoadBar is mentioned in the readme.md as a property, but index.ts.d does not contain showProgressLoadBar

Steps

 <ReactJkMusicPlayer
        showMiniProcessBar={false}
        showProgressLoadBar={false}
        audioLists={list}/>
    </>

Steps to Reproduce

Have the above script

Expected Behavior

No errors, progressloadbar is gone

Current Behavior

No overload matches this call.
  Overload 1 of 2, '(props: ReactJkMusicPlayerProps | Readonly<ReactJkMusicPlayerProps>): ReactJkMusicPlayer', gave the following error.
    Type '{ showMiniProcessBar: false; showProgressLoadBar: boolean; audioLists: ReactJkMusicPlayerAudioListProps[]; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<ReactJkMusicPlayer> & Readonly<ReactJkMusicPlayerProps> & Readonly<...>'.
      Property 'showProgressLoadBar' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<ReactJkMusicPlayer> & Readonly<ReactJkMusicPlayerProps> & Readonly<...>'.
  Overload 2 of 2, '(props: ReactJkMusicPlayerProps, context: any): ReactJkMusicPlayer', gave the following error.
    Type '{ showMiniProcessBar: false; showProgressLoadBar: boolean; audioLists: ReactJkMusicPlayerAudioListProps[]; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<ReactJkMusicPlayer> & Readonly<ReactJkMusicPlayerProps> & Readonly<...>'.
      Property 'showProgressLoadBar' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<ReactJkMusicPlayer> & Readonly<ReactJkMusicPlayerProps> & Readonly<...>'.  TS2769
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant