mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-21 13:27:15 +08:00
Change type with omitted prop
This commit is contained in:
4
types/react-bootstrap/lib/Carousel.d.ts
vendored
4
types/react-bootstrap/lib/Carousel.d.ts
vendored
@@ -4,7 +4,7 @@ import * as CarouselItem from './CarouselItem';
|
||||
import * as CarouselCaption from './CarouselCaption';
|
||||
|
||||
declare namespace Carousel {
|
||||
export interface CarouselProps extends Omit<React.HTMLProps<Carousel>, 'wrap'> {
|
||||
export type CarouselProps = Omit<React.HTMLProps<Carousel>, 'wrap'> & {
|
||||
activeIndex?: number;
|
||||
bsSize?: Sizes;
|
||||
bsStyle?: string;
|
||||
@@ -21,7 +21,7 @@ declare namespace Carousel {
|
||||
prevIcon?: React.ReactNode;
|
||||
slide?: boolean;
|
||||
wrap?: boolean;
|
||||
}
|
||||
};
|
||||
}
|
||||
declare class Carousel extends React.Component<Carousel.CarouselProps> {
|
||||
public static Caption: typeof CarouselCaption;
|
||||
|
||||
Reference in New Issue
Block a user