Breakpoints missing in TypeScript definitions
See original GitHub issueDescribe the bug
The prop breakpoints
is missing from the types definitions. Compilation fails with the following error:
No overload matches this call.
Overload 1 of 2, '(props: Readonly<CarouselProps>): default', gave the following error.
Type '{ children: Element[]; centered: true; infinite: true; slidesPerPage: number; slidesPerScroll: number; stopAutoPlayOnHover: true; offset: number; autoPlay: number; value: number; onChange: (e: number) => void; breakpoints: { ...; }; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<default> & Readonly<CarouselProps> & Readonly<{ children?: ReactNode; }>'.
Property 'breakpoints' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<default> & Readonly<CarouselProps> & Readonly<{ children?: ReactNode; }>'.
Overload 2 of 2, '(props: CarouselProps, context?: any): default', gave the following error.
Type '{ children: Element[]; centered: true; infinite: true; slidesPerPage: number; slidesPerScroll: number; stopAutoPlayOnHover: true; offset: number; autoPlay: number; value: number; onChange: (e: number) => void; breakpoints: { ...; }; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<default> & Readonly<CarouselProps> & Readonly<{ children?: ReactNode; }>'.
Property 'breakpoints' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<default> & Readonly<CarouselProps> & Readonly<{ children?: ReactNode; }>'. TS2769
Expected behavior The prop should be added to the types definitions file so that compilation works.
Desktop (please complete the following information):
- OS: Windows
- Browser: Chrome, Firefox
- Version: @brainhubeu/react-carousel 1.10.27, @types/brainhubeu__react-carousel 1.10.0
Issue Analytics
- State:
- Created 4 years ago
- Comments:14 (3 by maintainers)
Top Results From Across the Web
Cannot set breakpoints in TypeScript - VS Code - Stack Overflow
I am having a problem setting breakpoints in my TypeScript nodejs app in Visual Studio Code. I have followed the instructions on the...
Read more >TypeScript debugging with Visual Studio Code
Whenever you set a breakpoint in the original source, VS Code tries to find the generated source by searching the files specified by...
Read more >Typescript breakpoints are not hit by debugger
now go and place a breakpoint in a typescript file inside a nested folder inside src folder, like utils. place breakpoint in ./src/utils/index....
Read more >Debug a JavaScript or TypeScript app - Visual Studio (Windows)
The debugger pauses at the breakpoint you set (IDE highlights the statement in the yellow background). Now, you can inspect your app state...
Read more >Set Breakpoints - MATLAB & Simulink - MathWorks
To clear all breakpoints in all files, including error breakpoints, right-click the breakpoint alley and select Clear All Breakpoints. You also can use...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@nik72619c
I guess it’s this file https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/brainhubeu__react-carousel/index.d.ts
Sure 😃