From 1c012ab4f00b236f548506bdba14531ca4be664e Mon Sep 17 00:00:00 2001 From: FaithForHumans Date: Mon, 28 May 2018 23:29:43 -0500 Subject: [PATCH 1/5] Replacing reactstrap components with generics. --- types/reactstrap/lib/Alert.d.ts | 15 +++++++-------- types/reactstrap/lib/Badge.d.ts | 7 ++++--- types/reactstrap/lib/Breadcrumb.d.ts | 7 ++++--- types/reactstrap/lib/BreadcrumbItem.d.ts | 7 ++++--- types/reactstrap/lib/Button.d.ts | 6 +++--- types/reactstrap/lib/ButtonDropdown.d.ts | 15 +++++---------- types/reactstrap/lib/ButtonGroup.d.ts | 7 ++++--- types/reactstrap/lib/ButtonToolbar.d.ts | 7 ++++--- types/reactstrap/lib/Card.d.ts | 7 ++++--- types/reactstrap/lib/CardBody.d.ts | 7 ++++--- types/reactstrap/lib/CardColumns.d.ts | 7 ++++--- types/reactstrap/lib/CardDeck.d.ts | 7 ++++--- types/reactstrap/lib/CardFooter.d.ts | 7 ++++--- types/reactstrap/lib/CardGroup.d.ts | 7 ++++--- types/reactstrap/lib/CardHeader.d.ts | 7 ++++--- types/reactstrap/lib/CardImg.d.ts | 7 ++++--- types/reactstrap/lib/CardImgOverlay.d.ts | 7 ++++--- types/reactstrap/lib/CardLink.d.ts | 7 ++++--- types/reactstrap/lib/CardSubtitle.d.ts | 7 ++++--- types/reactstrap/lib/CardText.d.ts | 7 ++++--- types/reactstrap/lib/CardTitle.d.ts | 7 ++++--- types/reactstrap/lib/Carousel.d.ts | 6 +++--- types/reactstrap/lib/CarouselCaption.d.ts | 7 ++++--- types/reactstrap/lib/CarouselControl.d.ts | 7 ++++--- types/reactstrap/lib/CarouselIndicators.d.ts | 7 ++++--- types/reactstrap/lib/CarouselItem.d.ts | 2 +- types/reactstrap/lib/Col.d.ts | 8 +++++--- types/reactstrap/lib/Collapse.d.ts | 6 +++--- types/reactstrap/lib/Container.d.ts | 7 ++++--- types/reactstrap/lib/Dropdown.d.ts | 18 +++++++----------- types/reactstrap/lib/DropdownItem.d.ts | 6 +++--- types/reactstrap/lib/DropdownMenu.d.ts | 7 ++++--- types/reactstrap/lib/DropdownToggle.d.ts | 6 +++--- types/reactstrap/lib/Fade.d.ts | 7 ++++--- types/reactstrap/lib/Form.d.ts | 6 +++--- types/reactstrap/lib/FormFeedback.d.ts | 7 ++++--- types/reactstrap/lib/FormGroup.d.ts | 7 ++++--- types/reactstrap/lib/FormText.d.ts | 7 ++++--- types/reactstrap/lib/Input.d.ts | 6 +++--- types/reactstrap/lib/InputGroup.d.ts | 7 ++++--- types/reactstrap/lib/InputGroupAddon.d.ts | 7 ++++--- .../lib/InputGroupButtonDropdown.d.ts | 7 ++++--- types/reactstrap/lib/InputGroupText.d.ts | 7 ++++--- types/reactstrap/lib/Jumbotron.d.ts | 7 ++++--- types/reactstrap/lib/Label.d.ts | 11 ++++++----- types/reactstrap/lib/ListGroup.d.ts | 7 ++++--- types/reactstrap/lib/ListGroupItem.d.ts | 7 ++++--- types/reactstrap/lib/ListGroupItemHeading.d.ts | 7 ++++--- types/reactstrap/lib/ListGroupItemText.d.ts | 7 ++++--- types/reactstrap/lib/Media.d.ts | 7 ++++--- types/reactstrap/lib/Modal.d.ts | 6 +++--- types/reactstrap/lib/ModalBody.d.ts | 7 ++++--- types/reactstrap/lib/ModalFooter.d.ts | 7 ++++--- types/reactstrap/lib/ModalHeader.d.ts | 7 ++++--- types/reactstrap/lib/Nav.d.ts | 7 ++++--- types/reactstrap/lib/NavItem.d.ts | 7 ++++--- types/reactstrap/lib/NavLink.d.ts | 6 +++--- types/reactstrap/lib/Navbar.d.ts | 7 ++++--- types/reactstrap/lib/NavbarBrand.d.ts | 7 ++++--- types/reactstrap/lib/NavbarToggler.d.ts | 7 ++++--- types/reactstrap/lib/Pagination.d.ts | 7 ++++--- types/reactstrap/lib/PaginationItem.d.ts | 7 ++++--- types/reactstrap/lib/PaginationLink.d.ts | 7 ++++--- types/reactstrap/lib/Popover.d.ts | 6 +++--- types/reactstrap/lib/PopoverBody.d.ts | 7 ++++--- types/reactstrap/lib/PopoverHeader.d.ts | 7 ++++--- types/reactstrap/lib/Progress.d.ts | 6 +++--- types/reactstrap/lib/Row.d.ts | 7 ++++--- types/reactstrap/lib/TabContent.d.ts | 6 +++--- types/reactstrap/lib/TabPane.d.ts | 7 ++++--- types/reactstrap/lib/Table.d.ts | 7 ++++--- types/reactstrap/lib/Tag.d.ts | 7 ++++--- types/reactstrap/lib/Tooltip.d.ts | 14 ++++++-------- types/reactstrap/lib/Uncontrolled.d.ts | 8 ++++---- types/reactstrap/reactstrap-tests.tsx | 2 +- 75 files changed, 294 insertions(+), 249 deletions(-) diff --git a/types/reactstrap/lib/Alert.d.ts b/types/reactstrap/lib/Alert.d.ts index 2a5a0f8dde..73d3469473 100644 --- a/types/reactstrap/lib/Alert.d.ts +++ b/types/reactstrap/lib/Alert.d.ts @@ -1,6 +1,7 @@ +import * as React from 'react'; import { CSSModule } from '../index'; -export interface UncontrolledProps extends React.HTMLAttributes { +export type UncontrolledProps = React.HTMLAttributes & { className?: string; cssModule?: CSSModule; color?: string; @@ -8,15 +9,13 @@ export interface UncontrolledProps extends React.HTMLAttributes { transitionAppearTimeout?: number; transitionEnterTimeout?: number; transitionLeaveTimeout?: number; -} -export interface UncontrolledAlertProps extends UncontrolledProps { - /* intentionally blank */ -} +} & T; +export type UncontrolledAlertProps = UncontrolledProps; -export interface AlertProps extends UncontrolledAlertProps { +export type AlertProps = UncontrolledAlertProps & { isOpen?: boolean; toggle?: () => void; -} +}; -declare const Alert: React.StatelessComponent; +declare class Alert extends React.Component> {} export default Alert; diff --git a/types/reactstrap/lib/Badge.d.ts b/types/reactstrap/lib/Badge.d.ts index f45c418c52..eccd2ea240 100644 --- a/types/reactstrap/lib/Badge.d.ts +++ b/types/reactstrap/lib/Badge.d.ts @@ -1,12 +1,13 @@ +import * as React from 'react'; import { CSSModule } from '../index'; -export interface BadgeProps extends React.HTMLAttributes { +export type BadgeProps = React.HTMLAttributes & { color?: string; pill?: boolean; tag?: React.ReactType; className?: string; cssModule?: CSSModule; -} +} & T; -declare const Badge: React.StatelessComponent; +declare class Badge extends React.Component> {} export default Badge; diff --git a/types/reactstrap/lib/Breadcrumb.d.ts b/types/reactstrap/lib/Breadcrumb.d.ts index 74e770de4f..be7c1aab89 100644 --- a/types/reactstrap/lib/Breadcrumb.d.ts +++ b/types/reactstrap/lib/Breadcrumb.d.ts @@ -1,10 +1,11 @@ +import * as React from 'react'; import { CSSModule } from '../index'; -export interface BreadcrumbProps extends React.HTMLAttributes { +export type BreadcrumbProps = React.HTMLAttributes & { tag?: string; className?: string; cssModule?: CSSModule; -} +} & T; -declare const Breadcrumb: React.StatelessComponent; +declare class Breadcrumb extends React.Component> {} export default Breadcrumb; diff --git a/types/reactstrap/lib/BreadcrumbItem.d.ts b/types/reactstrap/lib/BreadcrumbItem.d.ts index ab2e9cbc4e..614ca34b99 100644 --- a/types/reactstrap/lib/BreadcrumbItem.d.ts +++ b/types/reactstrap/lib/BreadcrumbItem.d.ts @@ -1,6 +1,7 @@ +import * as React from 'react'; import { CSSModule } from '../index'; -export interface BreadcrumbItemProps extends React.HTMLAttributes { +export type BreadcrumbItemProps = React.HTMLAttributes & { tag?: React.ReactType; active?: boolean; className?: string; @@ -8,7 +9,7 @@ export interface BreadcrumbItemProps extends React.HTMLAttributes { // if a is passed as a string // this could be href [others: string]: any; -} +} & T; -declare const BreadcrumbItem: React.StatelessComponent; +declare class BreadcrumbItem extends React.Component> {} export default BreadcrumbItem; diff --git a/types/reactstrap/lib/Button.d.ts b/types/reactstrap/lib/Button.d.ts index bf75bcec8e..43075dc3dc 100644 --- a/types/reactstrap/lib/Button.d.ts +++ b/types/reactstrap/lib/Button.d.ts @@ -1,7 +1,7 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export interface ButtonProps extends React.HTMLProps { +export type ButtonProps = React.HTMLProps & { outline?: boolean; active?: boolean; block?: boolean; @@ -16,7 +16,7 @@ export interface ButtonProps extends React.HTMLProps { style?: React.CSSProperties; cssModule?: CSSModule; -} +} & T; -declare class Button extends React.Component {} +declare class Button extends React.Component> {} export default Button; diff --git a/types/reactstrap/lib/ButtonDropdown.d.ts b/types/reactstrap/lib/ButtonDropdown.d.ts index fd09d6da8f..ebae860bc7 100644 --- a/types/reactstrap/lib/ButtonDropdown.d.ts +++ b/types/reactstrap/lib/ButtonDropdown.d.ts @@ -1,15 +1,10 @@ +import * as React from 'react'; import { UncontrolledDropdownProps, DropdownProps } from './Dropdown'; -export interface UncontrolledProps extends UncontrolledDropdownProps { - /* intentionally blank */ -} -export interface UncontrolledButtonDropdownProps extends UncontrolledProps { - /* intentionally blank */ -} +export type UncontrolledProps = UncontrolledDropdownProps; +export type UncontrolledButtonDropdownProps = UncontrolledProps; -export interface ButtonDropdownProps extends DropdownProps { - /* intentionally blank */ -} +export type ButtonDropdownProps = DropdownProps; -declare const ButtonDropdown: React.StatelessComponent; +declare class ButtonDropdown extends React.Component> {} export default ButtonDropdown; diff --git a/types/reactstrap/lib/ButtonGroup.d.ts b/types/reactstrap/lib/ButtonGroup.d.ts index 10549f5347..27053d271c 100644 --- a/types/reactstrap/lib/ButtonGroup.d.ts +++ b/types/reactstrap/lib/ButtonGroup.d.ts @@ -1,6 +1,7 @@ +import * as React from 'react'; import { CSSModule } from '../index'; -export interface ButtonGroupProps extends React.HTMLAttributes { +export type ButtonGroupProps = React.HTMLAttributes & { tag?: React.ReactType; 'aria-label'?: string; className?: string; @@ -8,7 +9,7 @@ export interface ButtonGroupProps extends React.HTMLAttributes { role?: string; size?: string; vertical?: boolean; -} +} & T; -declare const ButtonGroup: React.StatelessComponent; +declare class ButtonGroup extends React.Component> {} export default ButtonGroup; diff --git a/types/reactstrap/lib/ButtonToolbar.d.ts b/types/reactstrap/lib/ButtonToolbar.d.ts index ebd8733b28..ea258a7c49 100644 --- a/types/reactstrap/lib/ButtonToolbar.d.ts +++ b/types/reactstrap/lib/ButtonToolbar.d.ts @@ -1,12 +1,13 @@ +import * as React from 'react'; import { CSSModule } from '../index'; -export interface ButtonToolbarProps extends React.HTMLAttributes { +export type ButtonToolbarProps = React.HTMLAttributes & { tag?: React.ReactType; 'aria-label'?: string; className?: string; cssModule?: CSSModule; role?: string; -} +} & T; -declare const ButtonToolbar: React.StatelessComponent; +declare class ButtonToolbar extends React.Component> {} export default ButtonToolbar; diff --git a/types/reactstrap/lib/Card.d.ts b/types/reactstrap/lib/Card.d.ts index 0387ae3e94..269a524087 100644 --- a/types/reactstrap/lib/Card.d.ts +++ b/types/reactstrap/lib/Card.d.ts @@ -1,6 +1,7 @@ +import * as React from 'react'; import { CSSModule } from '../index'; -export interface CardProps extends React.HTMLAttributes { +export type CardProps = React.HTMLAttributes & { tag?: React.ReactType; inverse?: boolean; color?: string; @@ -10,7 +11,7 @@ export interface CardProps extends React.HTMLAttributes { className?: string; cssModule?: CSSModule; style?: React.CSSProperties; -} +} & T; -declare const Card: React.StatelessComponent; +declare class Card extends React.Component> {} export default Card; diff --git a/types/reactstrap/lib/CardBody.d.ts b/types/reactstrap/lib/CardBody.d.ts index d95ac0d31b..3890cf4650 100644 --- a/types/reactstrap/lib/CardBody.d.ts +++ b/types/reactstrap/lib/CardBody.d.ts @@ -1,10 +1,11 @@ +import * as React from 'react'; import { CSSModule } from '../index'; -export interface CardBodyProps extends React.HTMLAttributes { +export type CardBodyProps = React.HTMLAttributes & { tag?: React.ReactType; className?: string; cssModule?: CSSModule; -} +} & T; -declare const CardBody: React.StatelessComponent; +declare class CardBody extends React.Component> {} export default CardBody; diff --git a/types/reactstrap/lib/CardColumns.d.ts b/types/reactstrap/lib/CardColumns.d.ts index 19f53cc250..be4688edb3 100644 --- a/types/reactstrap/lib/CardColumns.d.ts +++ b/types/reactstrap/lib/CardColumns.d.ts @@ -1,10 +1,11 @@ +import * as React from 'react'; import { CSSModule } from '../index'; -export interface CardColumnsProps extends React.HTMLAttributes { +export type CardColumnsProps = React.HTMLAttributes & { tag?: React.ReactType; className?: string; cssModule?: CSSModule; -} +} & T; -declare const CardColumns: React.StatelessComponent; +declare class CardColumns extends React.Component> {} export default CardColumns; diff --git a/types/reactstrap/lib/CardDeck.d.ts b/types/reactstrap/lib/CardDeck.d.ts index 09b3d39c34..28882603b1 100644 --- a/types/reactstrap/lib/CardDeck.d.ts +++ b/types/reactstrap/lib/CardDeck.d.ts @@ -1,10 +1,11 @@ +import * as React from 'react'; import { CSSModule } from '../index'; -export interface CardDeckProps extends React.HTMLAttributes { +export type CardDeckProps = React.HTMLAttributes & { tag?: React.ReactType; className?: string; cssModule?: CSSModule; -} +} & T; -declare const CardDeck: React.StatelessComponent; +declare class CardDeck extends React.Component> {} export default CardDeck; diff --git a/types/reactstrap/lib/CardFooter.d.ts b/types/reactstrap/lib/CardFooter.d.ts index f1ee324f03..9268ed4e70 100644 --- a/types/reactstrap/lib/CardFooter.d.ts +++ b/types/reactstrap/lib/CardFooter.d.ts @@ -1,10 +1,11 @@ +import * as React from 'react'; import { CSSModule } from '../index'; -export interface CardFooterProps extends React.HTMLAttributes { +export type CardFooterProps = React.HTMLAttributes & { tag?: React.ReactType; className?: string; cssModule?: CSSModule; -} +} & T; -declare const CardFooter: React.StatelessComponent; +declare class CardFooter extends React.Component> {} export default CardFooter; diff --git a/types/reactstrap/lib/CardGroup.d.ts b/types/reactstrap/lib/CardGroup.d.ts index 5bf83900bf..6e0d422656 100644 --- a/types/reactstrap/lib/CardGroup.d.ts +++ b/types/reactstrap/lib/CardGroup.d.ts @@ -1,10 +1,11 @@ +import * as React from 'react'; import { CSSModule } from '../index'; -export interface CardGroupProps extends React.HTMLAttributes { +export type CardGroupProps = React.HTMLAttributes & { tag?: React.ReactType; className?: string; cssModule?: CSSModule; -} +} & T; -declare const CardGroup: React.StatelessComponent; +declare class CardGroup extends React.Component> {} export default CardGroup; diff --git a/types/reactstrap/lib/CardHeader.d.ts b/types/reactstrap/lib/CardHeader.d.ts index d630954e78..821b2d809f 100644 --- a/types/reactstrap/lib/CardHeader.d.ts +++ b/types/reactstrap/lib/CardHeader.d.ts @@ -1,10 +1,11 @@ +import * as React from 'react'; import { CSSModule } from '../index'; -export interface CardHeaderProps extends React.HTMLAttributes { +export type CardHeaderProps = React.HTMLAttributes & { tag?: React.ReactType; className?: string; cssModule?: CSSModule; -} +} & T; -declare const CardHeader: React.StatelessComponent; +declare class CardHeader extends React.Component> {} export default CardHeader; diff --git a/types/reactstrap/lib/CardImg.d.ts b/types/reactstrap/lib/CardImg.d.ts index b4b7021232..e9242704b4 100644 --- a/types/reactstrap/lib/CardImg.d.ts +++ b/types/reactstrap/lib/CardImg.d.ts @@ -1,6 +1,7 @@ +import * as React from 'react'; import { CSSModule } from '../index'; -export interface CardImgProps extends React.HTMLAttributes { +export type CardImgProps = React.HTMLAttributes & { tag?: React.ReactType; top?: boolean; bottom?: boolean; @@ -10,7 +11,7 @@ export interface CardImgProps extends React.HTMLAttributes { width?: string; height?: string; alt?: string; -} +} & T; -declare const CardImg: React.StatelessComponent; +declare class CardImg extends React.Component> {} export default CardImg; diff --git a/types/reactstrap/lib/CardImgOverlay.d.ts b/types/reactstrap/lib/CardImgOverlay.d.ts index ccc76fa9c9..7e252f6248 100644 --- a/types/reactstrap/lib/CardImgOverlay.d.ts +++ b/types/reactstrap/lib/CardImgOverlay.d.ts @@ -1,10 +1,11 @@ +import * as React from 'react'; import { CSSModule } from '../index'; -export interface CardImgOverlayProps extends React.HTMLAttributes { +export type CardImgOverlayProps = React.HTMLAttributes & { tag?: React.ReactType; className?: string; cssModule?: CSSModule; -} +} & T; -declare const CardImgOverlay: React.StatelessComponent; +declare class CardImgOverlay extends React.Component> {} export default CardImgOverlay; diff --git a/types/reactstrap/lib/CardLink.d.ts b/types/reactstrap/lib/CardLink.d.ts index 1a24b55658..256d55d31c 100644 --- a/types/reactstrap/lib/CardLink.d.ts +++ b/types/reactstrap/lib/CardLink.d.ts @@ -1,12 +1,13 @@ +import * as React from 'react'; import { CSSModule } from '../index'; -export interface CardLinkProps extends React.HTMLAttributes { +export type CardLinkProps = React.HTMLAttributes & { tag?: React.ReactType; innerRef?: React.Ref; className?: string; cssModule?: CSSModule; href?: string; -} +} & T; -declare const CardLink: React.StatelessComponent; +declare class CardLink extends React.Component> {} export default CardLink; diff --git a/types/reactstrap/lib/CardSubtitle.d.ts b/types/reactstrap/lib/CardSubtitle.d.ts index a237c29119..a5285469cd 100644 --- a/types/reactstrap/lib/CardSubtitle.d.ts +++ b/types/reactstrap/lib/CardSubtitle.d.ts @@ -1,10 +1,11 @@ +import * as React from 'react'; import { CSSModule } from '../index'; -export interface CardSubtitleProps extends React.HTMLAttributes { +export type CardSubtitleProps = React.HTMLAttributes & { tag?: React.ReactType; className?: string; cssModule?: CSSModule; -} +} & T; -declare const CardSubtitle: React.StatelessComponent; +declare class CardSubtitle extends React.Component> {} export default CardSubtitle; diff --git a/types/reactstrap/lib/CardText.d.ts b/types/reactstrap/lib/CardText.d.ts index 462c1abef3..b09eea4de7 100644 --- a/types/reactstrap/lib/CardText.d.ts +++ b/types/reactstrap/lib/CardText.d.ts @@ -1,10 +1,11 @@ +import * as React from 'react'; import { CSSModule } from '../index'; -export interface CardTextProps extends React.HTMLAttributes { +export type CardTextProps = React.HTMLAttributes & { tag?: React.ReactType; className?: string; cssModule?: CSSModule; -} +} & T; -declare const CardText: React.StatelessComponent; +declare class CardText extends React.Component> {} export default CardText; diff --git a/types/reactstrap/lib/CardTitle.d.ts b/types/reactstrap/lib/CardTitle.d.ts index 68c5c6120c..6f3e91d26a 100644 --- a/types/reactstrap/lib/CardTitle.d.ts +++ b/types/reactstrap/lib/CardTitle.d.ts @@ -1,10 +1,11 @@ +import * as React from 'react'; import { CSSModule } from '../index'; -export interface CardTitleProps extends React.HTMLAttributes { +export type CardTitleProps = React.HTMLAttributes & { tag?: React.ReactType; className?: string; cssModule?: CSSModule; -} +} & T; -declare const CardTitle: React.StatelessComponent; +declare class CardTitle extends React.Component> {} export default CardTitle; diff --git a/types/reactstrap/lib/Carousel.d.ts b/types/reactstrap/lib/Carousel.d.ts index 1f21364cdf..d4c8de35a5 100644 --- a/types/reactstrap/lib/Carousel.d.ts +++ b/types/reactstrap/lib/Carousel.d.ts @@ -1,7 +1,7 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export interface CarouselProps extends React.HTMLProps { +export type CarouselProps = React.HTMLProps & { activeIndex?: number; next: () => void; previous: () => void; @@ -13,7 +13,7 @@ export interface CarouselProps extends React.HTMLProps { mouseExit?: () => void; slide?: boolean; cssModule?: CSSModule -} +} & T; -declare class Carousel extends React.Component {} +declare class Carousel extends React.Component> {} export default Carousel; diff --git a/types/reactstrap/lib/CarouselCaption.d.ts b/types/reactstrap/lib/CarouselCaption.d.ts index 58be0e29b3..2d6eea7d7f 100644 --- a/types/reactstrap/lib/CarouselCaption.d.ts +++ b/types/reactstrap/lib/CarouselCaption.d.ts @@ -1,10 +1,11 @@ +import * as React from 'react'; import { CSSModule } from '../index'; -export interface CarouselCaptionProps extends React.HTMLProps { +export type CarouselCaptionProps = React.HTMLProps & { captionHeader?: string; captionText: string; cssModule?: CSSModule; -} +} & T; -declare const CarouselCaption: React.StatelessComponent; +declare class CarouselCaption extends React.Component> {} export default CarouselCaption; diff --git a/types/reactstrap/lib/CarouselControl.d.ts b/types/reactstrap/lib/CarouselControl.d.ts index 0e94fd5c70..1605c84dd0 100644 --- a/types/reactstrap/lib/CarouselControl.d.ts +++ b/types/reactstrap/lib/CarouselControl.d.ts @@ -1,11 +1,12 @@ +import * as React from 'react'; import { CSSModule } from '../index'; -export interface CarouselControlProps extends React.HTMLProps { +export type CarouselControlProps = React.HTMLProps & { direction: 'prev' | 'next'; onClickHandler: () => void; cssModule?: CSSModule; directionText: string; -} +} & T; -declare const CarouselControl: React.StatelessComponent; +declare class CarouselControl extends React.Component> {} export default CarouselControl; diff --git a/types/reactstrap/lib/CarouselIndicators.d.ts b/types/reactstrap/lib/CarouselIndicators.d.ts index 8a8ead6c06..34c8c16eef 100644 --- a/types/reactstrap/lib/CarouselIndicators.d.ts +++ b/types/reactstrap/lib/CarouselIndicators.d.ts @@ -1,11 +1,12 @@ +import * as React from 'react'; import { CSSModule } from '../index'; -export interface CarouselIndicatorsProps extends React.HTMLProps { +export type CarouselIndicatorsProps = React.HTMLProps & { items: object[]; activeIndex: number; cssModule?: CSSModule; onClickHandler: (idx: number) => void; -} +} & T; -declare const CarouselIndicators: React.StatelessComponent; +declare class CarouselIndicators extends React.Component> {} export default CarouselIndicators; diff --git a/types/reactstrap/lib/CarouselItem.d.ts b/types/reactstrap/lib/CarouselItem.d.ts index 88e93dfcf1..264d093695 100644 --- a/types/reactstrap/lib/CarouselItem.d.ts +++ b/types/reactstrap/lib/CarouselItem.d.ts @@ -17,5 +17,5 @@ export interface CarouselItemProps extends React.HTMLProps, Transit slide?: boolean; } -declare class CarouselItem extends React.Component {} +declare class CarouselItem extends React.Component {} export default CarouselItem; diff --git a/types/reactstrap/lib/Col.d.ts b/types/reactstrap/lib/Col.d.ts index 57829ac931..5e6a3e8ffa 100644 --- a/types/reactstrap/lib/Col.d.ts +++ b/types/reactstrap/lib/Col.d.ts @@ -1,3 +1,5 @@ +import * as React from 'react'; + export type ColumnProps = string | boolean @@ -10,7 +12,7 @@ export type ColumnProps order?: string | number }; -export interface ColProps extends React.HTMLProps { +export type ColProps = React.HTMLProps & { tag?: React.ReactType; xs?: ColumnProps; sm?: ColumnProps; @@ -20,7 +22,7 @@ export interface ColProps extends React.HTMLProps { //custom widths widths?: string[]; -} +} & T; -declare const Col: React.StatelessComponent; +declare class Col extends React.Component> {} export default Col; diff --git a/types/reactstrap/lib/Collapse.d.ts b/types/reactstrap/lib/Collapse.d.ts index d83ff45666..8123c29b28 100644 --- a/types/reactstrap/lib/Collapse.d.ts +++ b/types/reactstrap/lib/Collapse.d.ts @@ -1,7 +1,7 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export interface CollapseProps extends React.HTMLProps { +export type CollapseProps = React.HTMLProps & { isOpen?: boolean; classNames?: string; cssModule?: CSSModule; @@ -18,7 +18,7 @@ export interface CollapseProps extends React.HTMLProps { onExit?: () => void; onExiting?: () => void; onExited?: () => void; -} +} & T; -declare class Collapse extends React.Component {} +declare class Collapse extends React.Component> {} export default Collapse; diff --git a/types/reactstrap/lib/Container.d.ts b/types/reactstrap/lib/Container.d.ts index df2114e773..5497f3e295 100644 --- a/types/reactstrap/lib/Container.d.ts +++ b/types/reactstrap/lib/Container.d.ts @@ -1,11 +1,12 @@ +import * as React from 'react'; import { CSSModule } from '../index'; -export interface ContainerProps extends React.HTMLAttributes { +export type ContainerProps = React.HTMLAttributes & { tag?: React.ReactType; fluid?: boolean; className?: string; cssModule?: CSSModule; -} +} & T; -declare const Container: React.StatelessComponent; +declare class Container extends React.Component> {} export default Container; diff --git a/types/reactstrap/lib/Dropdown.d.ts b/types/reactstrap/lib/Dropdown.d.ts index 4d892fff5c..803ece5bf3 100644 --- a/types/reactstrap/lib/Dropdown.d.ts +++ b/types/reactstrap/lib/Dropdown.d.ts @@ -7,29 +7,25 @@ export type Direction = | "left" | "right" -export interface UncontrolledProps extends React.HTMLAttributes { +export type UncontrolledProps = React.HTMLAttributes & { isOpen?: boolean; toggle?: () => void; className?: string; cssModule?: CSSModule; nav?: boolean; inNavbar?: boolean; -} -export interface UncontrolledDropdownProps extends UncontrolledProps { - /* intentionally blank */ -} +} & T; +export type UncontrolledDropdownProps = UncontrolledProps; -export interface Props extends UncontrolledProps { +export type Props = UncontrolledProps & { disabled?: boolean; direction?: Direction; group?: boolean; size?: string; tag?: React.ReactType; addonType?: boolean | 'prepend' | 'append'; -} -export interface DropdownProps extends Props { - /* intentionally blank */ -} +}; +export type DropdownProps = Props; -declare class Dropdown extends React.Component {} +declare class Dropdown extends React.Component> {} export default Dropdown; diff --git a/types/reactstrap/lib/DropdownItem.d.ts b/types/reactstrap/lib/DropdownItem.d.ts index 723e4707d4..d6b4344d59 100644 --- a/types/reactstrap/lib/DropdownItem.d.ts +++ b/types/reactstrap/lib/DropdownItem.d.ts @@ -1,7 +1,7 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export interface DropdownItemProps extends React.HTMLAttributes { +export type DropdownItemProps = React.HTMLAttributes & { disabled?: boolean; divider?: boolean; tag?: React.ReactType; @@ -12,7 +12,7 @@ export interface DropdownItemProps extends React.HTMLAttributes { href?: string; toggle?: boolean; active?: boolean; -} +} & T; -declare class DropdownItem extends React.Component {} +declare class DropdownItem extends React.Component> {} export default DropdownItem; diff --git a/types/reactstrap/lib/DropdownMenu.d.ts b/types/reactstrap/lib/DropdownMenu.d.ts index 8d3cdb6acd..ffb493faa6 100644 --- a/types/reactstrap/lib/DropdownMenu.d.ts +++ b/types/reactstrap/lib/DropdownMenu.d.ts @@ -1,12 +1,13 @@ +import * as React from 'react'; import { CSSModule } from '../index'; -export interface DropdownMenuProps extends React.HTMLAttributes { +export type DropdownMenuProps = React.HTMLAttributes & { tag?: React.ReactType; right?: boolean; className?: string; cssModule?: CSSModule; flip?: boolean; -} +} & T; -declare const DropdownMenu: React.StatelessComponent; +declare class DropdownMenu extends React.Component> {} export default DropdownMenu; diff --git a/types/reactstrap/lib/DropdownToggle.d.ts b/types/reactstrap/lib/DropdownToggle.d.ts index d02edd50b2..cdb665c6ce 100644 --- a/types/reactstrap/lib/DropdownToggle.d.ts +++ b/types/reactstrap/lib/DropdownToggle.d.ts @@ -1,7 +1,7 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export interface DropdownToggleProps extends React.HTMLAttributes { +export type DropdownToggleProps = React.HTMLAttributes & { caret?: boolean; className?: string; cssModule?: CSSModule; @@ -15,7 +15,7 @@ export interface DropdownToggleProps extends React.HTMLAttributes { nav?: boolean; color?: string; size?: string; -} +} & T; -declare class DropdownToggle extends React.Component {} +declare class DropdownToggle extends React.Component> {} export default DropdownToggle; diff --git a/types/reactstrap/lib/Fade.d.ts b/types/reactstrap/lib/Fade.d.ts index 05a13502e1..7e0d4ec775 100644 --- a/types/reactstrap/lib/Fade.d.ts +++ b/types/reactstrap/lib/Fade.d.ts @@ -1,6 +1,7 @@ +import * as React from 'react'; import { CSSModule } from '../index'; -export interface FadeProps extends React.HTMLAttributes { +export type FadeProps = React.HTMLAttributes & { in?: boolean; baseClass?: string; baseClassIn?: string; @@ -15,7 +16,7 @@ export interface FadeProps extends React.HTMLAttributes { transitionLeave?: boolean; onLeave?: () => void; onEnter?: () => void; -} +} & T; -declare const Fade: React.StatelessComponent; +declare class Fade extends React.Component> {} export default Fade; diff --git a/types/reactstrap/lib/Form.d.ts b/types/reactstrap/lib/Form.d.ts index 3b6f846d08..2b6668b631 100644 --- a/types/reactstrap/lib/Form.d.ts +++ b/types/reactstrap/lib/Form.d.ts @@ -1,13 +1,13 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export interface FormProps extends React.HTMLProps { +export type FormProps = React.HTMLProps & { inline?: boolean; tag?: React.ReactType; innerRef?: React.Ref; className?: string; cssModule?: CSSModule; -} +} & T; -declare class Form extends React.Component {} +declare class Form extends React.Component> {} export default Form; diff --git a/types/reactstrap/lib/FormFeedback.d.ts b/types/reactstrap/lib/FormFeedback.d.ts index 946aab01d8..78e6f66676 100644 --- a/types/reactstrap/lib/FormFeedback.d.ts +++ b/types/reactstrap/lib/FormFeedback.d.ts @@ -1,11 +1,12 @@ +import * as React from 'react'; import { CSSModule } from '../index'; -export interface FormFeedbackProps extends React.HTMLAttributes { +export type FormFeedbackProps = React.HTMLAttributes & { tag?: string; className?: string; cssModule?: CSSModule; valid?: boolean; -} +} & T; -declare const FormFeedback: React.StatelessComponent; +declare class FormFeedback extends React.Component> {} export default FormFeedback; diff --git a/types/reactstrap/lib/FormGroup.d.ts b/types/reactstrap/lib/FormGroup.d.ts index 52c96f3060..b463487e07 100644 --- a/types/reactstrap/lib/FormGroup.d.ts +++ b/types/reactstrap/lib/FormGroup.d.ts @@ -1,6 +1,7 @@ +import * as React from 'react'; import { CSSModule } from '../index'; -export interface FormGroupProps extends React.HTMLProps { +export type FormGroupProps = React.HTMLProps & { row?: boolean; check?: boolean; inline?: boolean; @@ -8,7 +9,7 @@ export interface FormGroupProps extends React.HTMLProps { tag?: React.ReactType; className?: string; cssModule?: CSSModule; -} +} & T; -declare const FormGroup: React.StatelessComponent; +declare class FormGroup extends React.Component> {} export default FormGroup; diff --git a/types/reactstrap/lib/FormText.d.ts b/types/reactstrap/lib/FormText.d.ts index 99a3675d6b..378b67d8a8 100644 --- a/types/reactstrap/lib/FormText.d.ts +++ b/types/reactstrap/lib/FormText.d.ts @@ -1,12 +1,13 @@ +import * as React from 'react'; import { CSSModule } from '../index'; -export interface FormTextProps extends React.HTMLAttributes { +export type FormTextProps = React.HTMLAttributes & { inline?: boolean; tag?: React.ReactType; color?: string; className?: string; cssModule?: CSSModule; -} +} & T; -declare const FormText: React.StatelessComponent; +declare class FormText extends React.Component> {} export default FormText; diff --git a/types/reactstrap/lib/Input.d.ts b/types/reactstrap/lib/Input.d.ts index 9d160ec2c4..87415b7e10 100644 --- a/types/reactstrap/lib/Input.d.ts +++ b/types/reactstrap/lib/Input.d.ts @@ -28,7 +28,7 @@ export type InputType = | 'time' | 'color'; -export interface InputProps extends React.InputHTMLAttributes { +export type InputProps = React.InputHTMLAttributes & { type?: InputType; bsSize?: 'lg' | 'sm'; state?: string; @@ -40,7 +40,7 @@ export interface InputProps extends React.InputHTMLAttributes addon?: boolean; className?: string; cssModule?: CSSModule; -} +} & T; -declare class Input extends React.Component {} +declare class Input extends React.Component> {} export default Input; diff --git a/types/reactstrap/lib/InputGroup.d.ts b/types/reactstrap/lib/InputGroup.d.ts index 468b46f1c5..3a74adb3d8 100644 --- a/types/reactstrap/lib/InputGroup.d.ts +++ b/types/reactstrap/lib/InputGroup.d.ts @@ -1,11 +1,12 @@ +import * as React from 'react'; import { CSSModule } from '../index'; -export interface InputGroupProps extends React.HTMLAttributes { +export type InputGroupProps = React.HTMLAttributes & { tag?: React.ReactType; size?: string; className?: string; cssModule?: CSSModule; -} +} & T; -declare const InputGroup: React.StatelessComponent; +declare class InputGroup extends React.Component> {} export default InputGroup; diff --git a/types/reactstrap/lib/InputGroupAddon.d.ts b/types/reactstrap/lib/InputGroupAddon.d.ts index 88b4f678c7..a76ae81a35 100644 --- a/types/reactstrap/lib/InputGroupAddon.d.ts +++ b/types/reactstrap/lib/InputGroupAddon.d.ts @@ -1,11 +1,12 @@ +import * as React from 'react'; import { CSSModule } from '../index'; -export interface InputGroupAddonProps extends React.HTMLAttributes { +export type InputGroupAddonProps = React.HTMLAttributes & { tag?: React.ReactType; className?: string; cssModule?: CSSModule; addonType: 'prepend' | 'append'; -} +} & T; -declare const InputGroupAddon: React.StatelessComponent; +declare class InputGroupAddon extends React.Component> {} export default InputGroupAddon; diff --git a/types/reactstrap/lib/InputGroupButtonDropdown.d.ts b/types/reactstrap/lib/InputGroupButtonDropdown.d.ts index 32a129d43d..2bd235f1f0 100644 --- a/types/reactstrap/lib/InputGroupButtonDropdown.d.ts +++ b/types/reactstrap/lib/InputGroupButtonDropdown.d.ts @@ -1,8 +1,9 @@ +import * as React from 'react'; import { DropdownProps } from './Dropdown'; -export interface InputGroupButtonDropdownProps extends DropdownProps { +export type InputGroupButtonDropdownProps = DropdownProps & { addonType: 'prepend' | 'append'; -} +} & T; -declare const InputGroupButtonDropdown: React.StatelessComponent; +declare class InputGroupButtonDropdown extends React.Component> {} export default InputGroupButtonDropdown; diff --git a/types/reactstrap/lib/InputGroupText.d.ts b/types/reactstrap/lib/InputGroupText.d.ts index 356babe8f4..e8b5a7acfc 100644 --- a/types/reactstrap/lib/InputGroupText.d.ts +++ b/types/reactstrap/lib/InputGroupText.d.ts @@ -1,9 +1,10 @@ +import * as React from 'react'; import { CSSModule } from '../index'; -export interface InputGroupTextProps extends React.HTMLAttributes { +export type InputGroupTextProps = React.HTMLAttributes & { tag?: React.ReactType; cssModule?: CSSModule; -} +} & T; -declare const InputGroupText: React.StatelessComponent; +declare class InputGroupText extends React.Component> {} export default InputGroupText; diff --git a/types/reactstrap/lib/Jumbotron.d.ts b/types/reactstrap/lib/Jumbotron.d.ts index 9145e73223..8b4fc45652 100644 --- a/types/reactstrap/lib/Jumbotron.d.ts +++ b/types/reactstrap/lib/Jumbotron.d.ts @@ -1,11 +1,12 @@ +import * as React from 'react'; import { CSSModule } from '../index'; -export interface JumbotronProps extends React.HTMLAttributes { +export type JumbotronProps = React.HTMLAttributes & { tag?: React.ReactType; fluid?: boolean; className?: string; cssModule?: CSSModule; -} +} & T; -declare const Jumbotron: React.StatelessComponent; +declare class Jumbotron extends React.Component> {} export default Jumbotron; diff --git a/types/reactstrap/lib/Label.d.ts b/types/reactstrap/lib/Label.d.ts index ae73e100f4..5669a63bad 100644 --- a/types/reactstrap/lib/Label.d.ts +++ b/types/reactstrap/lib/Label.d.ts @@ -1,11 +1,12 @@ +import * as React from 'react'; import { CSSModule } from '../index'; import { ColumnProps } from './Col'; -interface Intermediate extends React.LabelHTMLAttributes { +type Intermediate = React.LabelHTMLAttributes & { size?: any; -} +}; -export interface LabelProps extends Intermediate { +export type LabelProps = Intermediate & { hidden?: boolean; check?: boolean; inline?: boolean; @@ -20,7 +21,7 @@ export interface LabelProps extends Intermediate { md?: ColumnProps; lg?: ColumnProps; xl?: ColumnProps; -} +} & T; -declare const Label: React.StatelessComponent; +declare class Label extends React.Component> {} export default Label; diff --git a/types/reactstrap/lib/ListGroup.d.ts b/types/reactstrap/lib/ListGroup.d.ts index e9cb511cf0..2c69fcf294 100644 --- a/types/reactstrap/lib/ListGroup.d.ts +++ b/types/reactstrap/lib/ListGroup.d.ts @@ -1,11 +1,12 @@ +import * as React from 'react'; import { CSSModule } from '../index'; -export interface ListGroupProps extends React.HTMLAttributes { +export type ListGroupProps = React.HTMLAttributes & { tag?: React.ReactType; flush?: boolean; className?: string; cssModule?: CSSModule; -} +} & T; -declare const ListGroup: React.StatelessComponent; +declare class ListGroup extends React.Component> {} export default ListGroup; diff --git a/types/reactstrap/lib/ListGroupItem.d.ts b/types/reactstrap/lib/ListGroupItem.d.ts index 045aa9539e..3d4553aa7b 100644 --- a/types/reactstrap/lib/ListGroupItem.d.ts +++ b/types/reactstrap/lib/ListGroupItem.d.ts @@ -1,6 +1,7 @@ +import * as React from 'react'; import { CSSModule } from '../index'; -export interface ListGroupItemProps extends React.HTMLAttributes { +export type ListGroupItemProps = React.HTMLAttributes & { tag?: React.ReactType; active?: boolean; disabled?: boolean; @@ -11,7 +12,7 @@ export interface ListGroupItemProps extends React.HTMLAttributes { href?: string; onClick?: React.MouseEventHandler; -} +} & T; -declare const ListGroupItem: React.StatelessComponent; +declare class ListGroupItem extends React.Component> {} export default ListGroupItem; diff --git a/types/reactstrap/lib/ListGroupItemHeading.d.ts b/types/reactstrap/lib/ListGroupItemHeading.d.ts index 09e29f9434..c4f04e0330 100644 --- a/types/reactstrap/lib/ListGroupItemHeading.d.ts +++ b/types/reactstrap/lib/ListGroupItemHeading.d.ts @@ -1,10 +1,11 @@ +import * as React from 'react'; import { CSSModule } from '../index'; -export interface ListGroupItemHeadingProps extends React.HTMLAttributes { +export type ListGroupItemHeadingProps = React.HTMLAttributes & { tag?: React.ReactType; className?: string; cssModule?: CSSModule; -} +} & T; -declare const ListGroupItemHeading: React.StatelessComponent; +declare class ListGroupItemHeading extends React.Component> {} export default ListGroupItemHeading; diff --git a/types/reactstrap/lib/ListGroupItemText.d.ts b/types/reactstrap/lib/ListGroupItemText.d.ts index 947ee4cd7a..6fa1153ae2 100644 --- a/types/reactstrap/lib/ListGroupItemText.d.ts +++ b/types/reactstrap/lib/ListGroupItemText.d.ts @@ -1,10 +1,11 @@ +import * as React from 'react'; import { CSSModule } from '../index'; -export interface ListGroupItemTextProps extends React.HTMLAttributes { +export type ListGroupItemTextProps = React.HTMLAttributes & { tag?: React.ReactType; className?: string; cssModule?: CSSModule; -} +} & T; -declare const ListGroupItemText: React.StatelessComponent; +declare class ListGroupItemText extends React.Component> {} export default ListGroupItemText; diff --git a/types/reactstrap/lib/Media.d.ts b/types/reactstrap/lib/Media.d.ts index f7a9afb2c0..b64eeffd7f 100644 --- a/types/reactstrap/lib/Media.d.ts +++ b/types/reactstrap/lib/Media.d.ts @@ -1,6 +1,7 @@ +import * as React from 'react'; import { CSSModule } from '../index'; -export interface MediaProps extends React.HTMLAttributes { +export type MediaProps = React.HTMLAttributes & { body?: boolean; bottom?: boolean; className?: string; @@ -15,7 +16,7 @@ export interface MediaProps extends React.HTMLAttributes { top?: boolean; href?: string; alt?: string; -} +} & T; -declare const Media: React.StatelessComponent; +declare class Media extends React.Component> {} export default Media; diff --git a/types/reactstrap/lib/Modal.d.ts b/types/reactstrap/lib/Modal.d.ts index 1049ec7918..f2761bbc91 100644 --- a/types/reactstrap/lib/Modal.d.ts +++ b/types/reactstrap/lib/Modal.d.ts @@ -2,7 +2,7 @@ import * as React from 'react'; import { CSSModule } from '../index'; import { FadeProps } from './Fade'; -export interface ModalProps extends React.HTMLAttributes { +export type ModalProps = React.HTMLAttributes & { isOpen?: boolean; autoFocus?: boolean; size?: string; @@ -27,7 +27,7 @@ export interface ModalProps extends React.HTMLAttributes { external?: React.ReactNode; labelledBy?: string; role?: string; -} +} & T; -declare class Modal extends React.Component {} +declare class Modal extends React.Component> {} export default Modal; diff --git a/types/reactstrap/lib/ModalBody.d.ts b/types/reactstrap/lib/ModalBody.d.ts index 083ac04186..4817e64bf4 100644 --- a/types/reactstrap/lib/ModalBody.d.ts +++ b/types/reactstrap/lib/ModalBody.d.ts @@ -1,10 +1,11 @@ +import * as React from 'react'; import { CSSModule } from '../index'; -export interface ModalBodyProps extends React.HTMLAttributes { +export type ModalBodyProps = React.HTMLAttributes & { tag?: React.ReactType; className?: string; cssModule?: CSSModule; -} +} & T; -declare const ModalBody: React.StatelessComponent; +declare class ModalBody extends React.Component> {} export default ModalBody; diff --git a/types/reactstrap/lib/ModalFooter.d.ts b/types/reactstrap/lib/ModalFooter.d.ts index 40ed54f9ae..7997d6931a 100644 --- a/types/reactstrap/lib/ModalFooter.d.ts +++ b/types/reactstrap/lib/ModalFooter.d.ts @@ -1,10 +1,11 @@ +import * as React from 'react'; import { CSSModule } from '../index'; -export interface ModalFooterProps extends React.HTMLAttributes { +export type ModalFooterProps = React.HTMLAttributes & { tag?: React.ReactType; className?: string; cssModule?: CSSModule; -} +} & T; -declare const ModalFooter: React.StatelessComponent; +declare class ModalFooter extends React.Component> {} export default ModalFooter; diff --git a/types/reactstrap/lib/ModalHeader.d.ts b/types/reactstrap/lib/ModalHeader.d.ts index c1a3e55b7a..9e37201941 100644 --- a/types/reactstrap/lib/ModalHeader.d.ts +++ b/types/reactstrap/lib/ModalHeader.d.ts @@ -1,12 +1,13 @@ +import * as React from 'react'; import { CSSModule } from '../index'; -export interface ModalHeaderProps extends React.HTMLAttributes { +export type ModalHeaderProps = React.HTMLAttributes & { tag?: React.ReactType; className?: string; cssModule?: CSSModule; wrapTag?: React.ReactType; toggle?: () => void; -} +} & T; -declare const ModalHeader: React.StatelessComponent; +declare class ModalHeader extends React.Component> {} export default ModalHeader; diff --git a/types/reactstrap/lib/Nav.d.ts b/types/reactstrap/lib/Nav.d.ts index d96ab6e5d6..6868b01665 100644 --- a/types/reactstrap/lib/Nav.d.ts +++ b/types/reactstrap/lib/Nav.d.ts @@ -1,6 +1,7 @@ +import * as React from 'react'; import { CSSModule } from '../index'; -export interface NavProps extends React.HTMLProps { +export type NavProps = React.HTMLProps & { tabs?: boolean; pills?: boolean; vertical?: boolean | string; @@ -12,7 +13,7 @@ export interface NavProps extends React.HTMLProps { tag?: React.ReactType; className?: string; cssModule?: CSSModule; -} +} & T; -declare const Nav: React.StatelessComponent; +declare class Nav extends React.Component> {} export default Nav; diff --git a/types/reactstrap/lib/NavItem.d.ts b/types/reactstrap/lib/NavItem.d.ts index e42e4c8e5e..969369bfee 100644 --- a/types/reactstrap/lib/NavItem.d.ts +++ b/types/reactstrap/lib/NavItem.d.ts @@ -1,11 +1,12 @@ +import * as React from 'react'; import { CSSModule } from '../index'; -export interface NavItemProps extends React.HTMLAttributes { +export type NavItemProps = React.HTMLAttributes & { tag?: React.ReactType; active?: boolean; className?: string; cssModule?: CSSModule; -} +} & T; -declare const NavItem: React.StatelessComponent; +declare class NavItem extends React.Component> {} export default NavItem; diff --git a/types/reactstrap/lib/NavLink.d.ts b/types/reactstrap/lib/NavLink.d.ts index 0fdfdec641..4e88666c22 100644 --- a/types/reactstrap/lib/NavLink.d.ts +++ b/types/reactstrap/lib/NavLink.d.ts @@ -1,7 +1,7 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export interface NavLinkProps extends React.HTMLProps { +export type NavLinkProps = React.HTMLProps & { tag?: React.ReactType; innerRef?: React.Ref; disabled?: boolean; @@ -10,7 +10,7 @@ export interface NavLinkProps extends React.HTMLProps { cssModule?: CSSModule; onClick?: React.MouseEventHandler; href?: string; -} +} & T; -declare class NavLink extends React.Component {} +declare class NavLink extends React.Component> {} export default NavLink; diff --git a/types/reactstrap/lib/Navbar.d.ts b/types/reactstrap/lib/Navbar.d.ts index 83e720731a..39d7340d79 100644 --- a/types/reactstrap/lib/Navbar.d.ts +++ b/types/reactstrap/lib/Navbar.d.ts @@ -1,6 +1,7 @@ +import * as React from 'react'; import { CSSModule } from '../index'; -export interface NavbarProps extends React.HTMLAttributes { +export type NavbarProps = React.HTMLAttributes & { light?: boolean; dark?: boolean; inverse?: boolean; @@ -14,7 +15,7 @@ export interface NavbarProps extends React.HTMLAttributes { cssModule?: CSSModule; toggleable?: boolean | string; expand?: boolean | string; -} +} & T; -declare const Navbar: React.StatelessComponent; +declare class Navbar extends React.Component> {} export default Navbar; diff --git a/types/reactstrap/lib/NavbarBrand.d.ts b/types/reactstrap/lib/NavbarBrand.d.ts index 83ac8367b5..f7a814b31b 100644 --- a/types/reactstrap/lib/NavbarBrand.d.ts +++ b/types/reactstrap/lib/NavbarBrand.d.ts @@ -1,10 +1,11 @@ +import * as React from 'react'; import { CSSModule } from '../index'; -export interface NavbarBrandProps extends React.HTMLProps { +export type NavbarBrandProps = React.HTMLProps & { tag?: React.ReactType; className?: string; cssModule?: CSSModule; -} +} & T; -declare const NavbarBrand: React.StatelessComponent; +declare class NavbarBrand extends React.Component> {} export default NavbarBrand; diff --git a/types/reactstrap/lib/NavbarToggler.d.ts b/types/reactstrap/lib/NavbarToggler.d.ts index 542b671d28..b3dbedb20f 100644 --- a/types/reactstrap/lib/NavbarToggler.d.ts +++ b/types/reactstrap/lib/NavbarToggler.d.ts @@ -1,11 +1,12 @@ +import * as React from 'react'; import { CSSModule } from '../index'; -export interface NavbarTogglerProps extends React.HTMLProps { +export type NavbarTogglerProps = React.HTMLProps & { tag?: React.ReactType; type?: string; className?: string; cssModule?: CSSModule; -} +} & T; -declare const NavbarToggler: React.StatelessComponent; +declare class NavbarToggler extends React.Component> {} export default NavbarToggler; diff --git a/types/reactstrap/lib/Pagination.d.ts b/types/reactstrap/lib/Pagination.d.ts index 9dabaf8829..15f30547b7 100644 --- a/types/reactstrap/lib/Pagination.d.ts +++ b/types/reactstrap/lib/Pagination.d.ts @@ -1,10 +1,11 @@ +import * as React from 'react'; import { CSSModule } from '../index'; -export interface PaginationProps extends React.HTMLAttributes { +export type PaginationProps = React.HTMLAttributes & { className?: string; cssModule?: CSSModule; size?: string; -} +} & T; -declare const Pagination: React.StatelessComponent; +declare class Pagination extends React.Component> {} export default Pagination; diff --git a/types/reactstrap/lib/PaginationItem.d.ts b/types/reactstrap/lib/PaginationItem.d.ts index a00fddc413..b555239371 100644 --- a/types/reactstrap/lib/PaginationItem.d.ts +++ b/types/reactstrap/lib/PaginationItem.d.ts @@ -1,12 +1,13 @@ +import * as React from 'react'; import { CSSModule } from '../index'; -export interface PaginationItemProps extends React.HTMLAttributes { +export type PaginationItemProps = React.HTMLAttributes & { className?: string; cssModule?: CSSModule; active?: boolean; disabled?: boolean; tag?: React.ReactType; -} +} & T; -declare const PaginationItem: React.StatelessComponent; +declare class PaginationItem extends React.Component> {} export default PaginationItem; diff --git a/types/reactstrap/lib/PaginationLink.d.ts b/types/reactstrap/lib/PaginationLink.d.ts index 52fbc6353a..90ea909d4e 100644 --- a/types/reactstrap/lib/PaginationLink.d.ts +++ b/types/reactstrap/lib/PaginationLink.d.ts @@ -1,13 +1,14 @@ +import * as React from 'react'; import { CSSModule } from '../index'; -export interface PaginationLinkProps extends React.HTMLProps { +export type PaginationLinkProps = React.HTMLProps & { 'aria-label'?: string; className?: string; cssModule?: CSSModule; next?: boolean; previous?: boolean; tag?: React.ReactType; -} +} & T; -declare const PaginationLink: React.StatelessComponent; +declare class PaginationLink extends React.Component> {} export default PaginationLink; diff --git a/types/reactstrap/lib/Popover.d.ts b/types/reactstrap/lib/Popover.d.ts index e1ef254ee2..d1a0d56127 100644 --- a/types/reactstrap/lib/Popover.d.ts +++ b/types/reactstrap/lib/Popover.d.ts @@ -2,7 +2,7 @@ import * as React from 'react'; import { CSSModule } from '../index'; import { Popper } from './Popper'; -export interface PopoverProps extends React.HTMLAttributes { +export type PopoverProps = React.HTMLAttributes & { isOpen?: boolean; toggle?: () => void; target: string | HTMLElement; @@ -16,7 +16,7 @@ export interface PopoverProps extends React.HTMLAttributes { delay?: number | {show: number, hide: number}; modifiers?: Popper.Modifiers; cssModule?: CSSModule; -} +} & T; -declare class Popover extends React.Component {} +declare class Popover extends React.Component> {} export default Popover; diff --git a/types/reactstrap/lib/PopoverBody.d.ts b/types/reactstrap/lib/PopoverBody.d.ts index bf67919e49..d5a3d6732f 100644 --- a/types/reactstrap/lib/PopoverBody.d.ts +++ b/types/reactstrap/lib/PopoverBody.d.ts @@ -1,10 +1,11 @@ +import * as React from 'react'; import { CSSModule } from '../index'; -export interface PopoverBodyProps extends React.HTMLAttributes { +export type PopoverBodyProps = React.HTMLAttributes & { tag?: React.ReactType; className?: string; cssModule?: CSSModule; -} +} & T; -declare const PopoverBody: React.StatelessComponent; +declare class PopoverBody extends React.Component> {} export default PopoverBody; diff --git a/types/reactstrap/lib/PopoverHeader.d.ts b/types/reactstrap/lib/PopoverHeader.d.ts index caa0847233..7033dc90f8 100644 --- a/types/reactstrap/lib/PopoverHeader.d.ts +++ b/types/reactstrap/lib/PopoverHeader.d.ts @@ -1,10 +1,11 @@ +import * as React from 'react'; import { CSSModule } from '../index'; -export interface PopoverHeaderProps extends React.HTMLAttributes { +export type PopoverHeaderProps = React.HTMLAttributes & { tag?: React.ReactType; className?: string; cssModule?: CSSModule; -} +} & T; -declare const PopoverHeader: React.StatelessComponent; +declare class PopoverHeader extends React.Component> {} export default PopoverHeader; diff --git a/types/reactstrap/lib/Progress.d.ts b/types/reactstrap/lib/Progress.d.ts index 6f252622a1..4bd99ab690 100644 --- a/types/reactstrap/lib/Progress.d.ts +++ b/types/reactstrap/lib/Progress.d.ts @@ -1,6 +1,6 @@ import { CSSModule } from '../index'; -export interface ProgressProps extends React.HTMLAttributes { +export type ProgressProps = React.HTMLAttributes & { bar?: boolean; multi?: boolean; tag?: string; @@ -12,7 +12,7 @@ export interface ProgressProps extends React.HTMLAttributes { className?: string; cssModule?: CSSModule; barClassName?: string; -} +} & T; -declare const Progress: React.StatelessComponent; +declare class Progress extends React.Component> {}; export default Progress; diff --git a/types/reactstrap/lib/Row.d.ts b/types/reactstrap/lib/Row.d.ts index 35284a9f70..d430e336e0 100644 --- a/types/reactstrap/lib/Row.d.ts +++ b/types/reactstrap/lib/Row.d.ts @@ -1,11 +1,12 @@ +import * as React from 'react'; import { CSSModule } from '../index'; -export interface RowProps extends React.HTMLProps { +export type RowProps = React.HTMLProps & { className?: string; cssModule?: CSSModule; tag?: React.ReactType; noGutters?: boolean; -} +} & T; -declare const Row: React.StatelessComponent; +declare class Row extends React.Component> {} export default Row; diff --git a/types/reactstrap/lib/TabContent.d.ts b/types/reactstrap/lib/TabContent.d.ts index 46bf48d079..6597484f9e 100644 --- a/types/reactstrap/lib/TabContent.d.ts +++ b/types/reactstrap/lib/TabContent.d.ts @@ -1,12 +1,12 @@ import * as React from 'react'; import { CSSModule } from '../index'; -export interface TabContentProps extends React.HTMLAttributes { +export type TabContentProps = React.HTMLAttributes & { tag?: React.ReactType; activeTab?: number | string; className?: string; cssModule?: CSSModule; -} +} & T; -declare class TabContent extends React.Component {} +declare class TabContent extends React.Component> {} export default TabContent; diff --git a/types/reactstrap/lib/TabPane.d.ts b/types/reactstrap/lib/TabPane.d.ts index 0bcbfd5d17..1472fe28b7 100644 --- a/types/reactstrap/lib/TabPane.d.ts +++ b/types/reactstrap/lib/TabPane.d.ts @@ -1,11 +1,12 @@ +import * as React from 'react'; import { CSSModule } from '../index'; -export interface TabPaneProps extends React.HTMLAttributes { +export type TabPaneProps = React.HTMLAttributes & { tag?: React.ReactType; className?: string; cssModule?: CSSModule; tabId?: number | string; -} +} & T; -declare const TabPane: React.StatelessComponent; +declare class TabPane extends React.Component> {} export default TabPane; diff --git a/types/reactstrap/lib/Table.d.ts b/types/reactstrap/lib/Table.d.ts index 0374d7a0b5..3ad14b8c0a 100644 --- a/types/reactstrap/lib/Table.d.ts +++ b/types/reactstrap/lib/Table.d.ts @@ -1,6 +1,7 @@ +import * as React from 'react'; import { CSSModule } from '../index'; -export interface TableProps extends React.HTMLAttributes { +export type TableProps = React.HTMLAttributes & { className?: string; cssModule?: CSSModule; size?: string; @@ -12,7 +13,7 @@ export interface TableProps extends React.HTMLAttributes { responsive?: boolean; tag?: React.ReactType; responsiveTag?: React.ReactType; -} +} & T; -declare const Table: React.StatelessComponent; +declare class Table extends React.Component> {} export default Table; diff --git a/types/reactstrap/lib/Tag.d.ts b/types/reactstrap/lib/Tag.d.ts index 49df70b240..ea09231942 100644 --- a/types/reactstrap/lib/Tag.d.ts +++ b/types/reactstrap/lib/Tag.d.ts @@ -1,12 +1,13 @@ +import * as React from 'react'; import { CSSModule } from '../index'; -export interface TagProps extends React.HTMLAttributes { +export type TagProps = React.HTMLAttributes & { color?: string; pill?: boolean; tag?: React.ReactType; className?: string; cssModule?: CSSModule; -} +} & T; -declare const Tag: React.StatelessComponent; +declare class Tag extends React.Component> {} export default Tag; diff --git a/types/reactstrap/lib/Tooltip.d.ts b/types/reactstrap/lib/Tooltip.d.ts index 9c79c8a6d3..5cfcfcab1e 100644 --- a/types/reactstrap/lib/Tooltip.d.ts +++ b/types/reactstrap/lib/Tooltip.d.ts @@ -2,7 +2,7 @@ import * as React from 'react'; import { CSSModule } from '../index'; import {Popper} from './Popper'; -export interface UncontrolledProps extends React.HTMLAttributes { +export type UncontrolledProps = React.HTMLAttributes & { target: string | HTMLElement; container?: string | HTMLElement; delay?: number | {show: number, hide: number}; @@ -12,15 +12,13 @@ export interface UncontrolledProps extends React.HTMLAttributes { placement?: Popper.Placement; modifiers?: Popper.Modifiers; cssModule?: CSSModule; -} -export interface UncontrolledTooltipProps extends UncontrolledProps { - /* intentionally blank */ -} +} & T; +export type UncontrolledTooltipProps = UncontrolledProps; -export interface TooltipProps extends UncontrolledTooltipProps { +export type TooltipProps = UncontrolledTooltipProps & { toggle?: () => void; isOpen?: boolean; -} +}; -declare class Tooltip extends React.Component {} +declare class Tooltip extends React.Component> {} export default Tooltip; diff --git a/types/reactstrap/lib/Uncontrolled.d.ts b/types/reactstrap/lib/Uncontrolled.d.ts index d7aed3962f..f54652710c 100644 --- a/types/reactstrap/lib/Uncontrolled.d.ts +++ b/types/reactstrap/lib/Uncontrolled.d.ts @@ -5,10 +5,10 @@ import { UncontrolledButtonDropdownProps } from './ButtonDropdown'; import { UncontrolledDropdownProps } from './Dropdown'; import { UncontrolledTooltipProps } from './Tooltip'; -export class UncontrolledAlert extends React.Component {} -export class UncontrolledButtonDropdown extends React.Component {} -export class UncontrolledDropdown extends React.Component {} -export class UncontrolledTooltip extends React.Component {} +export class UncontrolledAlert extends React.Component> {} +export class UncontrolledButtonDropdown extends React.Component> {} +export class UncontrolledDropdown extends React.Component> {} +export class UncontrolledTooltip extends React.Component> {} export { UncontrolledAlertProps } from './Alert'; export { UncontrolledButtonDropdownProps } from './ButtonDropdown'; diff --git a/types/reactstrap/reactstrap-tests.tsx b/types/reactstrap/reactstrap-tests.tsx index 959ac2658b..770cb01fa1 100644 --- a/types/reactstrap/reactstrap-tests.tsx +++ b/types/reactstrap/reactstrap-tests.tsx @@ -350,7 +350,7 @@ class Example15 extends React.Component { Action Another Action - { + ) => { // something happens here }}>Another Action From ea78901bc65d7db0c706cc2c7b0bcb95f3399093 Mon Sep 17 00:00:00 2001 From: FaithForHumans Date: Tue, 29 May 2018 15:57:01 -0500 Subject: [PATCH 2/5] Changing individual file to export as allowing any by extra prop by default. --- types/reactstrap/lib/Alert.d.ts | 2 +- types/reactstrap/lib/Badge.d.ts | 2 +- types/reactstrap/lib/Breadcrumb.d.ts | 2 +- types/reactstrap/lib/BreadcrumbItem.d.ts | 2 +- types/reactstrap/lib/Button.d.ts | 2 +- types/reactstrap/lib/ButtonDropdown.d.ts | 2 +- types/reactstrap/lib/ButtonGroup.d.ts | 2 +- types/reactstrap/lib/ButtonToolbar.d.ts | 2 +- types/reactstrap/lib/Card.d.ts | 2 +- types/reactstrap/lib/CardBody.d.ts | 2 +- types/reactstrap/lib/CardColumns.d.ts | 2 +- types/reactstrap/lib/CardDeck.d.ts | 2 +- types/reactstrap/lib/CardFooter.d.ts | 2 +- types/reactstrap/lib/CardGroup.d.ts | 2 +- types/reactstrap/lib/CardHeader.d.ts | 2 +- types/reactstrap/lib/CardImg.d.ts | 2 +- types/reactstrap/lib/CardImgOverlay.d.ts | 2 +- types/reactstrap/lib/CardLink.d.ts | 2 +- types/reactstrap/lib/CardSubtitle.d.ts | 2 +- types/reactstrap/lib/CardText.d.ts | 2 +- types/reactstrap/lib/CardTitle.d.ts | 2 +- types/reactstrap/lib/Carousel.d.ts | 2 +- types/reactstrap/lib/CarouselCaption.d.ts | 2 +- types/reactstrap/lib/CarouselControl.d.ts | 2 +- types/reactstrap/lib/CarouselIndicators.d.ts | 2 +- types/reactstrap/lib/CarouselItem.d.ts | 6 +++--- types/reactstrap/lib/Col.d.ts | 2 +- types/reactstrap/lib/Collapse.d.ts | 2 +- types/reactstrap/lib/Container.d.ts | 2 +- types/reactstrap/lib/Dropdown.d.ts | 2 +- types/reactstrap/lib/DropdownMenu.d.ts | 2 +- types/reactstrap/lib/Fade.d.ts | 2 +- types/reactstrap/lib/FormFeedback.d.ts | 2 +- types/reactstrap/lib/FormGroup.d.ts | 2 +- types/reactstrap/lib/FormText.d.ts | 2 +- types/reactstrap/lib/InputGroup.d.ts | 2 +- types/reactstrap/lib/InputGroupAddon.d.ts | 2 +- types/reactstrap/lib/InputGroupButtonDropdown.d.ts | 2 +- types/reactstrap/lib/InputGroupText.d.ts | 2 +- types/reactstrap/lib/Jumbotron.d.ts | 2 +- types/reactstrap/lib/Label.d.ts | 2 +- types/reactstrap/lib/ListGroup.d.ts | 2 +- types/reactstrap/lib/ListGroupItem.d.ts | 2 +- types/reactstrap/lib/ListGroupItemHeading.d.ts | 2 +- types/reactstrap/lib/ListGroupItemText.d.ts | 2 +- types/reactstrap/lib/Media.d.ts | 2 +- types/reactstrap/lib/ModalBody.d.ts | 2 +- types/reactstrap/lib/ModalFooter.d.ts | 2 +- types/reactstrap/lib/ModalHeader.d.ts | 2 +- types/reactstrap/lib/Nav.d.ts | 2 +- types/reactstrap/lib/NavItem.d.ts | 2 +- types/reactstrap/lib/Navbar.d.ts | 2 +- types/reactstrap/lib/NavbarBrand.d.ts | 2 +- types/reactstrap/lib/NavbarToggler.d.ts | 2 +- types/reactstrap/lib/Pagination.d.ts | 2 +- types/reactstrap/lib/PaginationItem.d.ts | 2 +- types/reactstrap/lib/PaginationLink.d.ts | 2 +- types/reactstrap/lib/PopoverBody.d.ts | 2 +- types/reactstrap/lib/PopoverHeader.d.ts | 2 +- types/reactstrap/lib/Progress.d.ts | 2 +- types/reactstrap/lib/Row.d.ts | 2 +- types/reactstrap/lib/TabPane.d.ts | 2 +- types/reactstrap/lib/Table.d.ts | 2 +- types/reactstrap/lib/Tag.d.ts | 2 +- 64 files changed, 66 insertions(+), 66 deletions(-) diff --git a/types/reactstrap/lib/Alert.d.ts b/types/reactstrap/lib/Alert.d.ts index 73d3469473..edfd5303e0 100644 --- a/types/reactstrap/lib/Alert.d.ts +++ b/types/reactstrap/lib/Alert.d.ts @@ -17,5 +17,5 @@ export type AlertProps = UncontrolledAlertProps & { toggle?: () => void; }; -declare class Alert extends React.Component> {} +declare class Alert extends React.Component> {} export default Alert; diff --git a/types/reactstrap/lib/Badge.d.ts b/types/reactstrap/lib/Badge.d.ts index eccd2ea240..651521ac67 100644 --- a/types/reactstrap/lib/Badge.d.ts +++ b/types/reactstrap/lib/Badge.d.ts @@ -9,5 +9,5 @@ export type BadgeProps = React.HTMLAttributes & { cssModule?: CSSModule; } & T; -declare class Badge extends React.Component> {} +declare class Badge extends React.Component> {} export default Badge; diff --git a/types/reactstrap/lib/Breadcrumb.d.ts b/types/reactstrap/lib/Breadcrumb.d.ts index be7c1aab89..8cef634a53 100644 --- a/types/reactstrap/lib/Breadcrumb.d.ts +++ b/types/reactstrap/lib/Breadcrumb.d.ts @@ -7,5 +7,5 @@ export type BreadcrumbProps = React.HTMLAttributes & { cssModule?: CSSModule; } & T; -declare class Breadcrumb extends React.Component> {} +declare class Breadcrumb extends React.Component> {} export default Breadcrumb; diff --git a/types/reactstrap/lib/BreadcrumbItem.d.ts b/types/reactstrap/lib/BreadcrumbItem.d.ts index 614ca34b99..a3ce8156bf 100644 --- a/types/reactstrap/lib/BreadcrumbItem.d.ts +++ b/types/reactstrap/lib/BreadcrumbItem.d.ts @@ -11,5 +11,5 @@ export type BreadcrumbItemProps = React.HTMLAttributes & { [others: string]: any; } & T; -declare class BreadcrumbItem extends React.Component> {} +declare class BreadcrumbItem extends React.Component> {} export default BreadcrumbItem; diff --git a/types/reactstrap/lib/Button.d.ts b/types/reactstrap/lib/Button.d.ts index 43075dc3dc..326e5f88de 100644 --- a/types/reactstrap/lib/Button.d.ts +++ b/types/reactstrap/lib/Button.d.ts @@ -18,5 +18,5 @@ export type ButtonProps = React.HTMLProps & { cssModule?: CSSModule; } & T; -declare class Button extends React.Component> {} +declare class Button extends React.Component> {} export default Button; diff --git a/types/reactstrap/lib/ButtonDropdown.d.ts b/types/reactstrap/lib/ButtonDropdown.d.ts index ebae860bc7..92f16ce5ce 100644 --- a/types/reactstrap/lib/ButtonDropdown.d.ts +++ b/types/reactstrap/lib/ButtonDropdown.d.ts @@ -6,5 +6,5 @@ export type UncontrolledButtonDropdownProps = UncontrolledProps; export type ButtonDropdownProps = DropdownProps; -declare class ButtonDropdown extends React.Component> {} +declare class ButtonDropdown extends React.Component> {} export default ButtonDropdown; diff --git a/types/reactstrap/lib/ButtonGroup.d.ts b/types/reactstrap/lib/ButtonGroup.d.ts index 27053d271c..736f894165 100644 --- a/types/reactstrap/lib/ButtonGroup.d.ts +++ b/types/reactstrap/lib/ButtonGroup.d.ts @@ -11,5 +11,5 @@ export type ButtonGroupProps = React.HTMLAttributes & { vertical?: boolean; } & T; -declare class ButtonGroup extends React.Component> {} +declare class ButtonGroup extends React.Component> {} export default ButtonGroup; diff --git a/types/reactstrap/lib/ButtonToolbar.d.ts b/types/reactstrap/lib/ButtonToolbar.d.ts index ea258a7c49..b19fff3274 100644 --- a/types/reactstrap/lib/ButtonToolbar.d.ts +++ b/types/reactstrap/lib/ButtonToolbar.d.ts @@ -9,5 +9,5 @@ export type ButtonToolbarProps = React.HTMLAttributes & { role?: string; } & T; -declare class ButtonToolbar extends React.Component> {} +declare class ButtonToolbar extends React.Component> {} export default ButtonToolbar; diff --git a/types/reactstrap/lib/Card.d.ts b/types/reactstrap/lib/Card.d.ts index 269a524087..772cad5a89 100644 --- a/types/reactstrap/lib/Card.d.ts +++ b/types/reactstrap/lib/Card.d.ts @@ -13,5 +13,5 @@ export type CardProps = React.HTMLAttributes & { style?: React.CSSProperties; } & T; -declare class Card extends React.Component> {} +declare class Card extends React.Component> {} export default Card; diff --git a/types/reactstrap/lib/CardBody.d.ts b/types/reactstrap/lib/CardBody.d.ts index 3890cf4650..d8bcac515b 100644 --- a/types/reactstrap/lib/CardBody.d.ts +++ b/types/reactstrap/lib/CardBody.d.ts @@ -7,5 +7,5 @@ export type CardBodyProps = React.HTMLAttributes & { cssModule?: CSSModule; } & T; -declare class CardBody extends React.Component> {} +declare class CardBody extends React.Component> {} export default CardBody; diff --git a/types/reactstrap/lib/CardColumns.d.ts b/types/reactstrap/lib/CardColumns.d.ts index be4688edb3..ccce622907 100644 --- a/types/reactstrap/lib/CardColumns.d.ts +++ b/types/reactstrap/lib/CardColumns.d.ts @@ -7,5 +7,5 @@ export type CardColumnsProps = React.HTMLAttributes & { cssModule?: CSSModule; } & T; -declare class CardColumns extends React.Component> {} +declare class CardColumns extends React.Component> {} export default CardColumns; diff --git a/types/reactstrap/lib/CardDeck.d.ts b/types/reactstrap/lib/CardDeck.d.ts index 28882603b1..88f1166339 100644 --- a/types/reactstrap/lib/CardDeck.d.ts +++ b/types/reactstrap/lib/CardDeck.d.ts @@ -7,5 +7,5 @@ export type CardDeckProps = React.HTMLAttributes & { cssModule?: CSSModule; } & T; -declare class CardDeck extends React.Component> {} +declare class CardDeck extends React.Component> {} export default CardDeck; diff --git a/types/reactstrap/lib/CardFooter.d.ts b/types/reactstrap/lib/CardFooter.d.ts index 9268ed4e70..c65ba5f8cf 100644 --- a/types/reactstrap/lib/CardFooter.d.ts +++ b/types/reactstrap/lib/CardFooter.d.ts @@ -7,5 +7,5 @@ export type CardFooterProps = React.HTMLAttributes & { cssModule?: CSSModule; } & T; -declare class CardFooter extends React.Component> {} +declare class CardFooter extends React.Component> {} export default CardFooter; diff --git a/types/reactstrap/lib/CardGroup.d.ts b/types/reactstrap/lib/CardGroup.d.ts index 6e0d422656..be33a187d5 100644 --- a/types/reactstrap/lib/CardGroup.d.ts +++ b/types/reactstrap/lib/CardGroup.d.ts @@ -7,5 +7,5 @@ export type CardGroupProps = React.HTMLAttributes & { cssModule?: CSSModule; } & T; -declare class CardGroup extends React.Component> {} +declare class CardGroup extends React.Component> {} export default CardGroup; diff --git a/types/reactstrap/lib/CardHeader.d.ts b/types/reactstrap/lib/CardHeader.d.ts index 821b2d809f..ac46ca37ba 100644 --- a/types/reactstrap/lib/CardHeader.d.ts +++ b/types/reactstrap/lib/CardHeader.d.ts @@ -7,5 +7,5 @@ export type CardHeaderProps = React.HTMLAttributes & { cssModule?: CSSModule; } & T; -declare class CardHeader extends React.Component> {} +declare class CardHeader extends React.Component> {} export default CardHeader; diff --git a/types/reactstrap/lib/CardImg.d.ts b/types/reactstrap/lib/CardImg.d.ts index e9242704b4..6c77d88257 100644 --- a/types/reactstrap/lib/CardImg.d.ts +++ b/types/reactstrap/lib/CardImg.d.ts @@ -13,5 +13,5 @@ export type CardImgProps = React.HTMLAttributes & { alt?: string; } & T; -declare class CardImg extends React.Component> {} +declare class CardImg extends React.Component> {} export default CardImg; diff --git a/types/reactstrap/lib/CardImgOverlay.d.ts b/types/reactstrap/lib/CardImgOverlay.d.ts index 7e252f6248..f4da865ae7 100644 --- a/types/reactstrap/lib/CardImgOverlay.d.ts +++ b/types/reactstrap/lib/CardImgOverlay.d.ts @@ -7,5 +7,5 @@ export type CardImgOverlayProps = React.HTMLAttributes & { cssModule?: CSSModule; } & T; -declare class CardImgOverlay extends React.Component> {} +declare class CardImgOverlay extends React.Component> {} export default CardImgOverlay; diff --git a/types/reactstrap/lib/CardLink.d.ts b/types/reactstrap/lib/CardLink.d.ts index 256d55d31c..359cb6e32a 100644 --- a/types/reactstrap/lib/CardLink.d.ts +++ b/types/reactstrap/lib/CardLink.d.ts @@ -9,5 +9,5 @@ export type CardLinkProps = React.HTMLAttributes & { href?: string; } & T; -declare class CardLink extends React.Component> {} +declare class CardLink extends React.Component> {} export default CardLink; diff --git a/types/reactstrap/lib/CardSubtitle.d.ts b/types/reactstrap/lib/CardSubtitle.d.ts index a5285469cd..8e379ceaa1 100644 --- a/types/reactstrap/lib/CardSubtitle.d.ts +++ b/types/reactstrap/lib/CardSubtitle.d.ts @@ -7,5 +7,5 @@ export type CardSubtitleProps = React.HTMLAttributes & { cssModule?: CSSModule; } & T; -declare class CardSubtitle extends React.Component> {} +declare class CardSubtitle extends React.Component> {} export default CardSubtitle; diff --git a/types/reactstrap/lib/CardText.d.ts b/types/reactstrap/lib/CardText.d.ts index b09eea4de7..fd3fb8eba9 100644 --- a/types/reactstrap/lib/CardText.d.ts +++ b/types/reactstrap/lib/CardText.d.ts @@ -7,5 +7,5 @@ export type CardTextProps = React.HTMLAttributes & { cssModule?: CSSModule; } & T; -declare class CardText extends React.Component> {} +declare class CardText extends React.Component> {} export default CardText; diff --git a/types/reactstrap/lib/CardTitle.d.ts b/types/reactstrap/lib/CardTitle.d.ts index 6f3e91d26a..0d6bad3c89 100644 --- a/types/reactstrap/lib/CardTitle.d.ts +++ b/types/reactstrap/lib/CardTitle.d.ts @@ -7,5 +7,5 @@ export type CardTitleProps = React.HTMLAttributes & { cssModule?: CSSModule; } & T; -declare class CardTitle extends React.Component> {} +declare class CardTitle extends React.Component> {} export default CardTitle; diff --git a/types/reactstrap/lib/Carousel.d.ts b/types/reactstrap/lib/Carousel.d.ts index d4c8de35a5..0f59105f77 100644 --- a/types/reactstrap/lib/Carousel.d.ts +++ b/types/reactstrap/lib/Carousel.d.ts @@ -15,5 +15,5 @@ export type CarouselProps = React.HTMLProps & { cssModule?: CSSModule } & T; -declare class Carousel extends React.Component> {} +declare class Carousel extends React.Component> {} export default Carousel; diff --git a/types/reactstrap/lib/CarouselCaption.d.ts b/types/reactstrap/lib/CarouselCaption.d.ts index 2d6eea7d7f..047505f318 100644 --- a/types/reactstrap/lib/CarouselCaption.d.ts +++ b/types/reactstrap/lib/CarouselCaption.d.ts @@ -7,5 +7,5 @@ export type CarouselCaptionProps = React.HTMLProps & { cssModule?: CSSModule; } & T; -declare class CarouselCaption extends React.Component> {} +declare class CarouselCaption extends React.Component> {} export default CarouselCaption; diff --git a/types/reactstrap/lib/CarouselControl.d.ts b/types/reactstrap/lib/CarouselControl.d.ts index 1605c84dd0..fb309f4cb1 100644 --- a/types/reactstrap/lib/CarouselControl.d.ts +++ b/types/reactstrap/lib/CarouselControl.d.ts @@ -8,5 +8,5 @@ export type CarouselControlProps = React.HTMLProps & { directionText: string; } & T; -declare class CarouselControl extends React.Component> {} +declare class CarouselControl extends React.Component> {} export default CarouselControl; diff --git a/types/reactstrap/lib/CarouselIndicators.d.ts b/types/reactstrap/lib/CarouselIndicators.d.ts index 34c8c16eef..761ab8d1cf 100644 --- a/types/reactstrap/lib/CarouselIndicators.d.ts +++ b/types/reactstrap/lib/CarouselIndicators.d.ts @@ -8,5 +8,5 @@ export type CarouselIndicatorsProps = React.HTMLProps & { onClickHandler: (idx: number) => void; } & T; -declare class CarouselIndicators extends React.Component> {} +declare class CarouselIndicators extends React.Component> {} export default CarouselIndicators; diff --git a/types/reactstrap/lib/CarouselItem.d.ts b/types/reactstrap/lib/CarouselItem.d.ts index 264d093695..8eb6bb325d 100644 --- a/types/reactstrap/lib/CarouselItem.d.ts +++ b/types/reactstrap/lib/CarouselItem.d.ts @@ -10,12 +10,12 @@ export interface Transition { onExited?: () => void; } -export interface CarouselItemProps extends React.HTMLProps, Transition { +export type CarouselItemProps = React.HTMLProps & Transition & { tag?: React.ReactType; in?: boolean; cssModule?: CSSModule; slide?: boolean; -} +} & T; -declare class CarouselItem extends React.Component {} +declare class CarouselItem extends React.Component> {} export default CarouselItem; diff --git a/types/reactstrap/lib/Col.d.ts b/types/reactstrap/lib/Col.d.ts index 5e6a3e8ffa..0d1bac535d 100644 --- a/types/reactstrap/lib/Col.d.ts +++ b/types/reactstrap/lib/Col.d.ts @@ -24,5 +24,5 @@ export type ColProps = React.HTMLProps & { widths?: string[]; } & T; -declare class Col extends React.Component> {} +declare class Col extends React.Component> {} export default Col; diff --git a/types/reactstrap/lib/Collapse.d.ts b/types/reactstrap/lib/Collapse.d.ts index 8123c29b28..c3d6572ec9 100644 --- a/types/reactstrap/lib/Collapse.d.ts +++ b/types/reactstrap/lib/Collapse.d.ts @@ -20,5 +20,5 @@ export type CollapseProps = React.HTMLProps & { onExited?: () => void; } & T; -declare class Collapse extends React.Component> {} +declare class Collapse extends React.Component> {} export default Collapse; diff --git a/types/reactstrap/lib/Container.d.ts b/types/reactstrap/lib/Container.d.ts index 5497f3e295..a39db466bb 100644 --- a/types/reactstrap/lib/Container.d.ts +++ b/types/reactstrap/lib/Container.d.ts @@ -8,5 +8,5 @@ export type ContainerProps = React.HTMLAttributes & { cssModule?: CSSModule; } & T; -declare class Container extends React.Component> {} +declare class Container extends React.Component> {} export default Container; diff --git a/types/reactstrap/lib/Dropdown.d.ts b/types/reactstrap/lib/Dropdown.d.ts index 803ece5bf3..59f827744e 100644 --- a/types/reactstrap/lib/Dropdown.d.ts +++ b/types/reactstrap/lib/Dropdown.d.ts @@ -27,5 +27,5 @@ export type Props = UncontrolledProps & { }; export type DropdownProps = Props; -declare class Dropdown extends React.Component> {} +declare class Dropdown extends React.Component> {} export default Dropdown; diff --git a/types/reactstrap/lib/DropdownMenu.d.ts b/types/reactstrap/lib/DropdownMenu.d.ts index ffb493faa6..e485fad076 100644 --- a/types/reactstrap/lib/DropdownMenu.d.ts +++ b/types/reactstrap/lib/DropdownMenu.d.ts @@ -9,5 +9,5 @@ export type DropdownMenuProps = React.HTMLAttributes & { flip?: boolean; } & T; -declare class DropdownMenu extends React.Component> {} +declare class DropdownMenu extends React.Component> {} export default DropdownMenu; diff --git a/types/reactstrap/lib/Fade.d.ts b/types/reactstrap/lib/Fade.d.ts index 7e0d4ec775..97fe421e7d 100644 --- a/types/reactstrap/lib/Fade.d.ts +++ b/types/reactstrap/lib/Fade.d.ts @@ -18,5 +18,5 @@ export type FadeProps = React.HTMLAttributes & { onEnter?: () => void; } & T; -declare class Fade extends React.Component> {} +declare class Fade extends React.Component> {} export default Fade; diff --git a/types/reactstrap/lib/FormFeedback.d.ts b/types/reactstrap/lib/FormFeedback.d.ts index 78e6f66676..e221c9809b 100644 --- a/types/reactstrap/lib/FormFeedback.d.ts +++ b/types/reactstrap/lib/FormFeedback.d.ts @@ -8,5 +8,5 @@ export type FormFeedbackProps = React.HTMLAttributes & { valid?: boolean; } & T; -declare class FormFeedback extends React.Component> {} +declare class FormFeedback extends React.Component> {} export default FormFeedback; diff --git a/types/reactstrap/lib/FormGroup.d.ts b/types/reactstrap/lib/FormGroup.d.ts index b463487e07..f0369ff7d9 100644 --- a/types/reactstrap/lib/FormGroup.d.ts +++ b/types/reactstrap/lib/FormGroup.d.ts @@ -11,5 +11,5 @@ export type FormGroupProps = React.HTMLProps & { cssModule?: CSSModule; } & T; -declare class FormGroup extends React.Component> {} +declare class FormGroup extends React.Component> {} export default FormGroup; diff --git a/types/reactstrap/lib/FormText.d.ts b/types/reactstrap/lib/FormText.d.ts index 378b67d8a8..f2fc6f30a6 100644 --- a/types/reactstrap/lib/FormText.d.ts +++ b/types/reactstrap/lib/FormText.d.ts @@ -9,5 +9,5 @@ export type FormTextProps = React.HTMLAttributes & { cssModule?: CSSModule; } & T; -declare class FormText extends React.Component> {} +declare class FormText extends React.Component> {} export default FormText; diff --git a/types/reactstrap/lib/InputGroup.d.ts b/types/reactstrap/lib/InputGroup.d.ts index 3a74adb3d8..e95b6c5539 100644 --- a/types/reactstrap/lib/InputGroup.d.ts +++ b/types/reactstrap/lib/InputGroup.d.ts @@ -8,5 +8,5 @@ export type InputGroupProps = React.HTMLAttributes & { cssModule?: CSSModule; } & T; -declare class InputGroup extends React.Component> {} +declare class InputGroup extends React.Component> {} export default InputGroup; diff --git a/types/reactstrap/lib/InputGroupAddon.d.ts b/types/reactstrap/lib/InputGroupAddon.d.ts index a76ae81a35..eec8a6727a 100644 --- a/types/reactstrap/lib/InputGroupAddon.d.ts +++ b/types/reactstrap/lib/InputGroupAddon.d.ts @@ -8,5 +8,5 @@ export type InputGroupAddonProps = React.HTMLAttributes & { addonType: 'prepend' | 'append'; } & T; -declare class InputGroupAddon extends React.Component> {} +declare class InputGroupAddon extends React.Component> {} export default InputGroupAddon; diff --git a/types/reactstrap/lib/InputGroupButtonDropdown.d.ts b/types/reactstrap/lib/InputGroupButtonDropdown.d.ts index 2bd235f1f0..888364df14 100644 --- a/types/reactstrap/lib/InputGroupButtonDropdown.d.ts +++ b/types/reactstrap/lib/InputGroupButtonDropdown.d.ts @@ -5,5 +5,5 @@ export type InputGroupButtonDropdownProps = DropdownProps & { addonType: 'prepend' | 'append'; } & T; -declare class InputGroupButtonDropdown extends React.Component> {} +declare class InputGroupButtonDropdown extends React.Component> {} export default InputGroupButtonDropdown; diff --git a/types/reactstrap/lib/InputGroupText.d.ts b/types/reactstrap/lib/InputGroupText.d.ts index e8b5a7acfc..9e352ea9d8 100644 --- a/types/reactstrap/lib/InputGroupText.d.ts +++ b/types/reactstrap/lib/InputGroupText.d.ts @@ -6,5 +6,5 @@ export type InputGroupTextProps = React.HTMLAttributes & { cssModule?: CSSModule; } & T; -declare class InputGroupText extends React.Component> {} +declare class InputGroupText extends React.Component> {} export default InputGroupText; diff --git a/types/reactstrap/lib/Jumbotron.d.ts b/types/reactstrap/lib/Jumbotron.d.ts index 8b4fc45652..d271b63960 100644 --- a/types/reactstrap/lib/Jumbotron.d.ts +++ b/types/reactstrap/lib/Jumbotron.d.ts @@ -8,5 +8,5 @@ export type JumbotronProps = React.HTMLAttributes & { cssModule?: CSSModule; } & T; -declare class Jumbotron extends React.Component> {} +declare class Jumbotron extends React.Component> {} export default Jumbotron; diff --git a/types/reactstrap/lib/Label.d.ts b/types/reactstrap/lib/Label.d.ts index 5669a63bad..89d9a96e48 100644 --- a/types/reactstrap/lib/Label.d.ts +++ b/types/reactstrap/lib/Label.d.ts @@ -23,5 +23,5 @@ export type LabelProps = Intermediate & { xl?: ColumnProps; } & T; -declare class Label extends React.Component> {} +declare class Label extends React.Component> {} export default Label; diff --git a/types/reactstrap/lib/ListGroup.d.ts b/types/reactstrap/lib/ListGroup.d.ts index 2c69fcf294..1c2f6739e6 100644 --- a/types/reactstrap/lib/ListGroup.d.ts +++ b/types/reactstrap/lib/ListGroup.d.ts @@ -8,5 +8,5 @@ export type ListGroupProps = React.HTMLAttributes & { cssModule?: CSSModule; } & T; -declare class ListGroup extends React.Component> {} +declare class ListGroup extends React.Component> {} export default ListGroup; diff --git a/types/reactstrap/lib/ListGroupItem.d.ts b/types/reactstrap/lib/ListGroupItem.d.ts index 3d4553aa7b..54ae820290 100644 --- a/types/reactstrap/lib/ListGroupItem.d.ts +++ b/types/reactstrap/lib/ListGroupItem.d.ts @@ -14,5 +14,5 @@ export type ListGroupItemProps = React.HTMLAttributes & { onClick?: React.MouseEventHandler; } & T; -declare class ListGroupItem extends React.Component> {} +declare class ListGroupItem extends React.Component> {} export default ListGroupItem; diff --git a/types/reactstrap/lib/ListGroupItemHeading.d.ts b/types/reactstrap/lib/ListGroupItemHeading.d.ts index c4f04e0330..6748aaa04c 100644 --- a/types/reactstrap/lib/ListGroupItemHeading.d.ts +++ b/types/reactstrap/lib/ListGroupItemHeading.d.ts @@ -7,5 +7,5 @@ export type ListGroupItemHeadingProps = React.HTMLAttributes extends React.Component> {} +declare class ListGroupItemHeading extends React.Component> {} export default ListGroupItemHeading; diff --git a/types/reactstrap/lib/ListGroupItemText.d.ts b/types/reactstrap/lib/ListGroupItemText.d.ts index 6fa1153ae2..667f2cad70 100644 --- a/types/reactstrap/lib/ListGroupItemText.d.ts +++ b/types/reactstrap/lib/ListGroupItemText.d.ts @@ -7,5 +7,5 @@ export type ListGroupItemTextProps = React.HTMLAttributes & cssModule?: CSSModule; } & T; -declare class ListGroupItemText extends React.Component> {} +declare class ListGroupItemText extends React.Component> {} export default ListGroupItemText; diff --git a/types/reactstrap/lib/Media.d.ts b/types/reactstrap/lib/Media.d.ts index b64eeffd7f..0c82de93d0 100644 --- a/types/reactstrap/lib/Media.d.ts +++ b/types/reactstrap/lib/Media.d.ts @@ -18,5 +18,5 @@ export type MediaProps = React.HTMLAttributes & { alt?: string; } & T; -declare class Media extends React.Component> {} +declare class Media extends React.Component> {} export default Media; diff --git a/types/reactstrap/lib/ModalBody.d.ts b/types/reactstrap/lib/ModalBody.d.ts index 4817e64bf4..a7c38a1914 100644 --- a/types/reactstrap/lib/ModalBody.d.ts +++ b/types/reactstrap/lib/ModalBody.d.ts @@ -7,5 +7,5 @@ export type ModalBodyProps = React.HTMLAttributes & { cssModule?: CSSModule; } & T; -declare class ModalBody extends React.Component> {} +declare class ModalBody extends React.Component> {} export default ModalBody; diff --git a/types/reactstrap/lib/ModalFooter.d.ts b/types/reactstrap/lib/ModalFooter.d.ts index 7997d6931a..8ce9b23cf2 100644 --- a/types/reactstrap/lib/ModalFooter.d.ts +++ b/types/reactstrap/lib/ModalFooter.d.ts @@ -7,5 +7,5 @@ export type ModalFooterProps = React.HTMLAttributes & { cssModule?: CSSModule; } & T; -declare class ModalFooter extends React.Component> {} +declare class ModalFooter extends React.Component> {} export default ModalFooter; diff --git a/types/reactstrap/lib/ModalHeader.d.ts b/types/reactstrap/lib/ModalHeader.d.ts index 9e37201941..4ef33e16ad 100644 --- a/types/reactstrap/lib/ModalHeader.d.ts +++ b/types/reactstrap/lib/ModalHeader.d.ts @@ -9,5 +9,5 @@ export type ModalHeaderProps = React.HTMLAttributes & { toggle?: () => void; } & T; -declare class ModalHeader extends React.Component> {} +declare class ModalHeader extends React.Component> {} export default ModalHeader; diff --git a/types/reactstrap/lib/Nav.d.ts b/types/reactstrap/lib/Nav.d.ts index 6868b01665..bc5fbdb6b9 100644 --- a/types/reactstrap/lib/Nav.d.ts +++ b/types/reactstrap/lib/Nav.d.ts @@ -15,5 +15,5 @@ export type NavProps = React.HTMLProps & { cssModule?: CSSModule; } & T; -declare class Nav extends React.Component> {} +declare class Nav extends React.Component> {} export default Nav; diff --git a/types/reactstrap/lib/NavItem.d.ts b/types/reactstrap/lib/NavItem.d.ts index 969369bfee..ff2ad879c3 100644 --- a/types/reactstrap/lib/NavItem.d.ts +++ b/types/reactstrap/lib/NavItem.d.ts @@ -8,5 +8,5 @@ export type NavItemProps = React.HTMLAttributes & { cssModule?: CSSModule; } & T; -declare class NavItem extends React.Component> {} +declare class NavItem extends React.Component> {} export default NavItem; diff --git a/types/reactstrap/lib/Navbar.d.ts b/types/reactstrap/lib/Navbar.d.ts index 39d7340d79..a0f721835a 100644 --- a/types/reactstrap/lib/Navbar.d.ts +++ b/types/reactstrap/lib/Navbar.d.ts @@ -17,5 +17,5 @@ export type NavbarProps = React.HTMLAttributes & { expand?: boolean | string; } & T; -declare class Navbar extends React.Component> {} +declare class Navbar extends React.Component> {} export default Navbar; diff --git a/types/reactstrap/lib/NavbarBrand.d.ts b/types/reactstrap/lib/NavbarBrand.d.ts index f7a814b31b..eea7ba15e4 100644 --- a/types/reactstrap/lib/NavbarBrand.d.ts +++ b/types/reactstrap/lib/NavbarBrand.d.ts @@ -7,5 +7,5 @@ export type NavbarBrandProps = React.HTMLProps & { cssModule?: CSSModule; } & T; -declare class NavbarBrand extends React.Component> {} +declare class NavbarBrand extends React.Component> {} export default NavbarBrand; diff --git a/types/reactstrap/lib/NavbarToggler.d.ts b/types/reactstrap/lib/NavbarToggler.d.ts index b3dbedb20f..f4e1e212e5 100644 --- a/types/reactstrap/lib/NavbarToggler.d.ts +++ b/types/reactstrap/lib/NavbarToggler.d.ts @@ -8,5 +8,5 @@ export type NavbarTogglerProps = React.HTMLProps & { cssModule?: CSSModule; } & T; -declare class NavbarToggler extends React.Component> {} +declare class NavbarToggler extends React.Component> {} export default NavbarToggler; diff --git a/types/reactstrap/lib/Pagination.d.ts b/types/reactstrap/lib/Pagination.d.ts index 15f30547b7..d31895d31d 100644 --- a/types/reactstrap/lib/Pagination.d.ts +++ b/types/reactstrap/lib/Pagination.d.ts @@ -7,5 +7,5 @@ export type PaginationProps = React.HTMLAttributes & { size?: string; } & T; -declare class Pagination extends React.Component> {} +declare class Pagination extends React.Component> {} export default Pagination; diff --git a/types/reactstrap/lib/PaginationItem.d.ts b/types/reactstrap/lib/PaginationItem.d.ts index b555239371..b2567f5402 100644 --- a/types/reactstrap/lib/PaginationItem.d.ts +++ b/types/reactstrap/lib/PaginationItem.d.ts @@ -9,5 +9,5 @@ export type PaginationItemProps = React.HTMLAttributes & { tag?: React.ReactType; } & T; -declare class PaginationItem extends React.Component> {} +declare class PaginationItem extends React.Component> {} export default PaginationItem; diff --git a/types/reactstrap/lib/PaginationLink.d.ts b/types/reactstrap/lib/PaginationLink.d.ts index 90ea909d4e..5e1db2d2b7 100644 --- a/types/reactstrap/lib/PaginationLink.d.ts +++ b/types/reactstrap/lib/PaginationLink.d.ts @@ -10,5 +10,5 @@ export type PaginationLinkProps = React.HTMLProps & { tag?: React.ReactType; } & T; -declare class PaginationLink extends React.Component> {} +declare class PaginationLink extends React.Component> {} export default PaginationLink; diff --git a/types/reactstrap/lib/PopoverBody.d.ts b/types/reactstrap/lib/PopoverBody.d.ts index d5a3d6732f..ef274a0558 100644 --- a/types/reactstrap/lib/PopoverBody.d.ts +++ b/types/reactstrap/lib/PopoverBody.d.ts @@ -7,5 +7,5 @@ export type PopoverBodyProps = React.HTMLAttributes & { cssModule?: CSSModule; } & T; -declare class PopoverBody extends React.Component> {} +declare class PopoverBody extends React.Component> {} export default PopoverBody; diff --git a/types/reactstrap/lib/PopoverHeader.d.ts b/types/reactstrap/lib/PopoverHeader.d.ts index 7033dc90f8..2ee7d5665e 100644 --- a/types/reactstrap/lib/PopoverHeader.d.ts +++ b/types/reactstrap/lib/PopoverHeader.d.ts @@ -7,5 +7,5 @@ export type PopoverHeaderProps = React.HTMLAttributes & { cssModule?: CSSModule; } & T; -declare class PopoverHeader extends React.Component> {} +declare class PopoverHeader extends React.Component> {} export default PopoverHeader; diff --git a/types/reactstrap/lib/Progress.d.ts b/types/reactstrap/lib/Progress.d.ts index 4bd99ab690..9edeed0807 100644 --- a/types/reactstrap/lib/Progress.d.ts +++ b/types/reactstrap/lib/Progress.d.ts @@ -14,5 +14,5 @@ export type ProgressProps = React.HTMLAttributes & { barClassName?: string; } & T; -declare class Progress extends React.Component> {}; +declare class Progress extends React.Component> {}; export default Progress; diff --git a/types/reactstrap/lib/Row.d.ts b/types/reactstrap/lib/Row.d.ts index d430e336e0..c8887e3e12 100644 --- a/types/reactstrap/lib/Row.d.ts +++ b/types/reactstrap/lib/Row.d.ts @@ -8,5 +8,5 @@ export type RowProps = React.HTMLProps & { noGutters?: boolean; } & T; -declare class Row extends React.Component> {} +declare class Row extends React.Component> {} export default Row; diff --git a/types/reactstrap/lib/TabPane.d.ts b/types/reactstrap/lib/TabPane.d.ts index 1472fe28b7..7f4624e23a 100644 --- a/types/reactstrap/lib/TabPane.d.ts +++ b/types/reactstrap/lib/TabPane.d.ts @@ -8,5 +8,5 @@ export type TabPaneProps = React.HTMLAttributes & { tabId?: number | string; } & T; -declare class TabPane extends React.Component> {} +declare class TabPane extends React.Component> {} export default TabPane; diff --git a/types/reactstrap/lib/Table.d.ts b/types/reactstrap/lib/Table.d.ts index 3ad14b8c0a..394a1f3f40 100644 --- a/types/reactstrap/lib/Table.d.ts +++ b/types/reactstrap/lib/Table.d.ts @@ -15,5 +15,5 @@ export type TableProps = React.HTMLAttributes & { responsiveTag?: React.ReactType; } & T; -declare class Table extends React.Component> {} +declare class Table extends React.Component> {} export default Table; diff --git a/types/reactstrap/lib/Tag.d.ts b/types/reactstrap/lib/Tag.d.ts index ea09231942..dbec4c3516 100644 --- a/types/reactstrap/lib/Tag.d.ts +++ b/types/reactstrap/lib/Tag.d.ts @@ -9,5 +9,5 @@ export type TagProps = React.HTMLAttributes & { cssModule?: CSSModule; } & T; -declare class Tag extends React.Component> {} +declare class Tag extends React.Component> {} export default Tag; From d9ce205b5753eeb8124052b967733c062f4210a9 Mon Sep 17 00:00:00 2001 From: FaithForHumans Date: Tue, 29 May 2018 15:57:55 -0500 Subject: [PATCH 3/5] Updating index file to export generics. --- types/reactstrap/index.d.ts | 312 +++++++++++++++++++++++++++--------- 1 file changed, 235 insertions(+), 77 deletions(-) diff --git a/types/reactstrap/index.d.ts b/types/reactstrap/index.d.ts index 2cf1ce6c86..b7c408183b 100644 --- a/types/reactstrap/index.d.ts +++ b/types/reactstrap/index.d.ts @@ -14,80 +14,238 @@ export interface CSSModule { [className: string]: string; } -export { default as Alert, AlertProps } from './lib/Alert'; -export { default as Badge, BadgeProps } from './lib/Badge'; -export { default as Breadcrumb, BreadcrumbProps } from './lib/Breadcrumb'; -export { default as BreadcrumbItem, BreadcrumbItemProps } from './lib/BreadcrumbItem'; -export { default as Button, ButtonProps } from './lib/Button'; -export { default as ButtonDropdown, ButtonDropdownProps } from './lib/ButtonDropdown'; -export { default as ButtonGroup, ButtonGroupProps } from './lib/ButtonGroup'; -export { default as ButtonToolbar, ButtonToolbarProps } from './lib/ButtonToolbar'; -export { default as Card, CardProps } from './lib/Card'; -export { default as CardBody, CardBodyProps } from './lib/CardBody'; -export { default as CardColumns, CardColumnsProps } from './lib/CardColumns'; -export { default as CardDeck, CardDeckProps } from './lib/CardDeck'; -export { default as CardFooter, CardFooterProps } from './lib/CardFooter'; -export { default as CardGroup, CardGroupProps } from './lib/CardGroup'; -export { default as CardHeader, CardHeaderProps } from './lib/CardHeader'; -export { default as CardImg, CardImgProps } from './lib/CardImg'; -export { default as CardImgOverlay, CardImgOverlayProps } from './lib/CardImgOverlay'; -export { default as CardLink, CardLinkProps } from './lib/CardLink'; -export { default as CardSubtitle, CardSubtitleProps } from './lib/CardSubtitle'; -export { default as CardText, CardTextProps } from './lib/CardText'; -export { default as CardTitle, CardTitleProps } from './lib/CardTitle'; -export { default as Carousel, CarouselProps } from './lib/Carousel'; -export { default as CarouselItem, CarouselItemProps } from './lib/CarouselItem'; -export { default as CarouselControl, CarouselControlProps } from './lib/CarouselControl'; -export { default as CarouselIndicators, CarouselIndicatorsProps } from './lib/CarouselIndicators'; -export { default as CarouselCaption, CarouselCaptionProps } from './lib/CarouselCaption'; -export { default as Col, ColProps } from './lib/Col'; -export { default as Collapse, CollapseProps } from './lib/Collapse'; -export { default as Container, ContainerProps } from './lib/Container'; -export { default as Dropdown, DropdownProps } from './lib/Dropdown'; -export { default as DropdownItem, DropdownItemProps } from './lib/DropdownItem'; -export { default as DropdownMenu, DropdownMenuProps } from './lib/DropdownMenu'; -export { default as DropdownToggle, DropdownToggleProps } from './lib/DropdownToggle'; -export { default as Fade, FadeProps } from './lib/Fade'; -export { default as Form, FormProps } from './lib/Form'; -export { default as FormFeedback, FormFeedbackProps } from './lib/FormFeedback'; -export { default as FormGroup, FormGroupProps } from './lib/FormGroup'; -export { default as FormText, FormTextProps } from './lib/FormText'; -export { default as Input, InputProps } from './lib/Input'; -export { default as InputGroup, InputGroupProps } from './lib/InputGroup'; -export { default as InputGroupAddon, InputGroupAddonProps } from './lib/InputGroupAddon'; -export { default as InputGroupButtonDropdown, InputGroupButtonDropdownProps } from './lib/InputGroupButtonDropdown'; -export { default as InputGroupText, InputGroupTextProps } from './lib/InputGroupText'; -export { default as Jumbotron, JumbotronProps } from './lib/Jumbotron'; -export { default as Label, LabelProps } from './lib/Label'; -export { default as ListGroup, ListGroupProps } from './lib/ListGroup'; -export { default as ListGroupItem, ListGroupItemProps } from './lib/ListGroupItem'; -export { default as ListGroupItemHeading, ListGroupItemHeadingProps } from './lib/ListGroupItemHeading'; -export { default as ListGroupItemText, ListGroupItemTextProps } from './lib/ListGroupItemText'; -export { default as Media, MediaProps } from './lib/Media'; -export { default as Modal, ModalProps } from './lib/Modal'; -export { default as ModalBody, ModalBodyProps } from './lib/ModalBody'; -export { default as ModalFooter, ModalFooterProps } from './lib/ModalFooter'; -export { default as ModalHeader, ModalHeaderProps } from './lib/ModalHeader'; -export { default as Nav, NavProps } from './lib/Nav'; -export { default as Navbar, NavbarProps } from './lib/Navbar'; -export { default as NavbarBrand, NavbarBrandProps } from './lib/NavbarBrand'; -export { default as NavbarToggler, NavbarTogglerProps } from './lib/NavbarToggler'; -export { default as NavItem, NavItemProps } from './lib/NavItem'; -export { default as NavLink, NavLinkProps } from './lib/NavLink'; -export { default as Pagination, PaginationProps } from './lib/Pagination'; -export { default as PaginationItem, PaginationItemProps } from './lib/PaginationItem'; -export { default as PaginationLink, PaginationLinkProps } from './lib/PaginationLink'; -export { default as Popover, PopoverProps } from './lib/Popover'; -export { default as PopoverBody, PopoverBodyProps } from './lib/PopoverBody'; -export { default as PopoverHeader, PopoverHeaderProps } from './lib/PopoverHeader'; -export { default as Progress, ProgressProps } from './lib/Progress'; -export { default as Row, RowProps } from './lib/Row'; -export { default as TabContent, TabContentProps } from './lib/TabContent'; -export { default as Table, TableProps } from './lib/Table'; -export { default as TabPane, TabPaneProps } from './lib/TabPane'; -export { default as Tag, TagProps } from './lib/Tag'; -export { default as Tooltip, TooltipProps } from './lib/Tooltip'; -export { UncontrolledAlert, UncontrolledAlertProps } from './lib/Uncontrolled'; -export { UncontrolledButtonDropdown, UncontrolledButtonDropdownProps } from './lib/Uncontrolled'; -export { UncontrolledDropdown, UncontrolledDropdownProps } from './lib/Uncontrolled'; -export { UncontrolledTooltip, UncontrolledTooltipProps } from './lib/Uncontrolled'; +import { default as Alert_ } from './lib/Alert'; +export class Alert extends Alert_ {} +export { AlertProps } from './lib/Alert'; +import { default as Badge_ } from './lib/Badge'; +export class Badge extends Badge_ {} +export { BadgeProps } from './lib/Badge'; +import { default as Breadcrumb_ } from './lib/Breadcrumb'; +export class Breadcrumb extends Breadcrumb_ {} +export { BreadcrumbProps } from './lib/Breadcrumb'; +import { default as BreadcrumbItem_ } from './lib/BreadcrumbItem'; +export class BreadcrumbItem extends BreadcrumbItem_ {} +export { BreadcrumbItemProps } from './lib/BreadcrumbItem'; +import { default as Button_ } from './lib/Button'; +export class Button extends Button_ {} +export { ButtonProps } from './lib/Button'; +import { default as ButtonDropdown_ } from './lib/ButtonDropdown'; +export class ButtonDropdown extends ButtonDropdown_ {} +export { ButtonDropdownProps } from './lib/ButtonDropdown'; +import { default as ButtonGroup_ } from './lib/ButtonGroup'; +export class ButtonGroup extends ButtonGroup_ {} +export { ButtonGroupProps } from './lib/ButtonGroup'; +import { default as ButtonToolbar_ } from './lib/ButtonToolbar'; +export class ButtonToolbar extends ButtonToolbar_ {} +export { ButtonToolbarProps } from './lib/ButtonToolbar'; +import { default as Card_ } from './lib/Card'; +export class Card extends Card_ {} +export { CardProps } from './lib/Card'; +import { default as CardBody_ } from './lib/CardBody'; +export class CardBody extends CardBody_ {} +export { CardBodyProps } from './lib/CardBody'; +import { default as CardColumns_ } from './lib/CardColumns'; +export class CardColumns extends CardColumns_ {} +export { CardColumnsProps } from './lib/CardColumns'; +import { default as CardDeck_ } from './lib/CardDeck'; +export class CardDeck extends CardDeck_ {} +export { CardDeckProps } from './lib/CardDeck'; +import { default as CardFooter_ } from './lib/CardFooter'; +export class CardFooter extends CardFooter_ {} +export { CardFooterProps } from './lib/CardFooter'; +import { default as CardGroup_ } from './lib/CardGroup'; +export class CardGroup extends CardGroup_ {} +export { CardGroupProps } from './lib/CardGroup'; +import { default as CardHeader_ } from './lib/CardHeader'; +export class CardHeader extends CardHeader_ {} +export { CardHeaderProps } from './lib/CardHeader'; +import { default as CardImg_ } from './lib/CardImg'; +export class CardImg extends CardImg_ {} +export { CardImgProps } from './lib/CardImg'; +import { default as CardImgOverlay_ } from './lib/CardImgOverlay'; +export class CardImgOverlay extends CardImgOverlay_ {} +export { CardImgOverlayProps } from './lib/CardImgOverlay'; +import { default as CardLink_ } from './lib/CardLink'; +export class CardLink extends CardLink_ {} +export { CardLinkProps } from './lib/CardLink'; +import { default as CardSubtitle_ } from './lib/CardSubtitle'; +export class CardSubtitle extends CardSubtitle_ {} +export { CardSubtitleProps } from './lib/CardSubtitle'; +import { default as CardText_ } from './lib/CardText'; +export class CardText extends CardText_ {} +export { CardTextProps } from './lib/CardText'; +import { default as CardTitle_ } from './lib/CardTitle'; +export class CardTitle extends CardTitle_ {} +export { CardTitleProps } from './lib/CardTitle'; +import { default as Carousel_ } from './lib/Carousel'; +export class Carousel extends Carousel_ {} +export { CarouselProps } from './lib/Carousel'; +import { default as CarouselItem_ } from './lib/CarouselItem'; +export class CarouselItem extends CarouselItem_ {} +export { CarouselItemProps } from './lib/CarouselItem'; +import { default as CarouselControl_ } from './lib/CarouselControl'; +export class CarouselControl extends CarouselControl_ {} +export { CarouselControlProps } from './lib/CarouselControl'; +import { default as CarouselIndicators_ } from './lib/CarouselIndicators'; +export class CarouselIndicators extends CarouselIndicators_ {} +export { CarouselIndicatorsProps } from './lib/CarouselIndicators'; +import { default as CarouselCaption_ } from './lib/CarouselCaption'; +export class CarouselCaption extends CarouselCaption_ {} +export { CarouselCaptionProps } from './lib/CarouselCaption'; +import { default as Col_ } from './lib/Col'; +export class Col extends Col_ {} +export { ColProps } from './lib/Col'; +import { default as Collapse_ } from './lib/Collapse'; +export class Collapse extends Collapse_ {} +export { CollapseProps } from './lib/Collapse'; +import { default as Container_ } from './lib/Container'; +export class Container extends Container_ {} +export { ContainerProps } from './lib/Container'; +import { default as Dropdown_ } from './lib/Dropdown'; +export class Dropdown extends Dropdown_ {} +export { DropdownProps } from './lib/Dropdown'; +import { default as DropdownItem_ } from './lib/DropdownItem'; +export class DropdownItem extends DropdownItem_ {} +export { DropdownItemProps } from './lib/DropdownItem'; +import { default as DropdownMenu_ } from './lib/DropdownMenu'; +export class DropdownMenu extends DropdownMenu_ {} +export { DropdownMenuProps } from './lib/DropdownMenu'; +import { default as DropdownToggle_ } from './lib/DropdownToggle'; +export class DropdownToggle extends DropdownToggle_ {} +export { DropdownToggleProps } from './lib/DropdownToggle'; +import { default as Fade_ } from './lib/Fade'; +export class Fade extends Fade_ {} +export { FadeProps } from './lib/Fade'; +import { default as Form_ } from './lib/Form'; +export class Form extends Form_ {} +export { FormProps } from './lib/Form'; +import { default as FormFeedback_ } from './lib/FormFeedback'; +export class FormFeedback extends FormFeedback_ {} +export { FormFeedbackProps } from './lib/FormFeedback'; +import { default as FormGroup_ } from './lib/FormGroup'; +export class FormGroup extends FormGroup_ {} +export { FormGroupProps } from './lib/FormGroup'; +import { default as FormText_ } from './lib/FormText'; +export class FormText extends FormText_ {} +export { FormTextProps } from './lib/FormText'; +import { default as Input_ } from './lib/Input'; +export class Input extends Input_ {} +export { InputProps } from './lib/Input'; +import { default as InputGroup_ } from './lib/InputGroup'; +export class InputGroup extends InputGroup_ {} +export { InputGroupProps } from './lib/InputGroup'; +import { default as InputGroupAddon_ } from './lib/InputGroupAddon'; +export class InputGroupAddon extends InputGroupAddon_ {} +export { InputGroupAddonProps } from './lib/InputGroupAddon'; +import { default as InputGroupButtonDropdown_ } from './lib/InputGroupButtonDropdown'; +export class InputGroupButtonDropdown extends InputGroupButtonDropdown_ {} +export { InputGroupButtonDropdownProps } from './lib/InputGroupButtonDropdown'; +import { default as InputGroupText_ } from './lib/InputGroupText'; +export class InputGroupText extends InputGroupText_ {} +export { InputGroupTextProps } from './lib/InputGroupText'; +import { default as Jumbotron_ } from './lib/Jumbotron'; +export class Jumbotron extends Jumbotron_ {} +export { JumbotronProps } from './lib/Jumbotron'; +import { default as Label_ } from './lib/Label'; +export class Label extends Label_ {} +export { LabelProps } from './lib/Label'; +import { default as ListGroup_ } from './lib/ListGroup'; +export class ListGroup extends ListGroup_ {} +export { ListGroupProps } from './lib/ListGroup'; +import { default as ListGroupItem_ } from './lib/ListGroupItem'; +export class ListGroupItem extends ListGroupItem_ {} +export { ListGroupItemProps } from './lib/ListGroupItem'; +import { default as ListGroupItemHeading_ } from './lib/ListGroupItemHeading'; +export class ListGroupItemHeading extends ListGroupItemHeading_ {} +export { ListGroupItemHeadingProps } from './lib/ListGroupItemHeading'; +import { default as ListGroupItemText_ } from './lib/ListGroupItemText'; +export class ListGroupItemText extends ListGroupItemText_ {} +export { ListGroupItemTextProps } from './lib/ListGroupItemText'; +import { default as Media_ } from './lib/Media'; +export class Media extends Media_ {} +export { MediaProps } from './lib/Media'; +import { default as Modal_ } from './lib/Modal'; +export class Modal extends Modal_ {} +export { ModalProps } from './lib/Modal'; +import { default as ModalBody_ } from './lib/ModalBody'; +export class ModalBody extends ModalBody_ {} +export { ModalBodyProps } from './lib/ModalBody'; +import { default as ModalFooter_ } from './lib/ModalFooter'; +export class ModalFooter extends ModalFooter_ {} +export { ModalFooterProps } from './lib/ModalFooter'; +import { default as ModalHeader_ } from './lib/ModalHeader'; +export class ModalHeader extends ModalHeader_ {} +export { ModalHeaderProps } from './lib/ModalHeader'; +import { default as Nav_ } from './lib/Nav'; +export class Nav extends Nav_ {} +export { NavProps } from './lib/Nav'; +import { default as Navbar_ } from './lib/Navbar'; +export class Navbar extends Navbar_ {} +export { NavbarProps } from './lib/Navbar'; +import { default as NavbarBrand_ } from './lib/NavbarBrand'; +export class NavbarBrand extends NavbarBrand_ {} +export { NavbarBrandProps } from './lib/NavbarBrand'; +import { default as NavbarToggler_ } from './lib/NavbarToggler'; +export class NavbarToggler extends NavbarToggler_ {} +export { NavbarTogglerProps } from './lib/NavbarToggler'; +import { default as NavItem_ } from './lib/NavItem'; +export class NavItem extends NavItem_ {} +export { NavItemProps } from './lib/NavItem'; +import { default as NavLink_ } from './lib/NavLink'; +export class NavLink extends NavLink_ {} +export { NavLinkProps } from './lib/NavLink'; +import { default as Pagination_ } from './lib/Pagination'; +export class Pagination extends Pagination_ {} +export { PaginationProps } from './lib/Pagination'; +import { default as PaginationItem_ } from './lib/PaginationItem'; +export class PaginationItem extends PaginationItem_ {} +export { PaginationItemProps } from './lib/PaginationItem'; +import { default as PaginationLink_ } from './lib/PaginationLink'; +export class PaginationLink extends PaginationLink_ {} +export { PaginationLinkProps } from './lib/PaginationLink'; +import { default as Popover_ } from './lib/Popover'; +export class Popover extends Popover_ {} +export { PopoverProps } from './lib/Popover'; +import { default as PopoverBody_ } from './lib/PopoverBody'; +export class PopoverBody extends PopoverBody_ {} +export { PopoverBodyProps } from './lib/PopoverBody'; +import { default as PopoverHeader_ } from './lib/PopoverHeader'; +export class PopoverHeader extends PopoverHeader_ {} +export { PopoverHeaderProps } from './lib/PopoverHeader'; +import { default as Progress_ } from './lib/Progress'; +export class Progress extends Progress_ {} +export { ProgressProps } from './lib/Progress'; +import { default as Row_ } from './lib/Row'; +export class Row extends Row_ {} +export { RowProps } from './lib/Row'; +import { default as TabContent_ } from './lib/TabContent'; +export class TabContent extends TabContent_ {} +export { TabContentProps } from './lib/TabContent'; +import { default as Table_ } from './lib/Table'; +export class Table extends Table_ {} +export { TableProps } from './lib/Table'; +import { default as TabPane_ } from './lib/TabPane'; +export class TabPane extends TabPane_ {} +export { TabPaneProps } from './lib/TabPane'; +import { default as Tag_ } from './lib/Tag'; +export class Tag extends Tag_ {} +export { TagProps } from './lib/Tag'; +import { default as Tooltip_ } from './lib/Tooltip'; +export class Tooltip extends Tooltip_ {} +export { TooltipProps } from './lib/Tooltip'; +import { + UncontrolledAlert as UncontrolledAlert_, + UncontrolledButtonDropdown as UncontrolledButtonDropdown_, + UncontrolledDropdown as UncontrolledDropdown_, + UncontrolledTooltip as UncontrolledTooltip_ +} from './lib/Uncontrolled'; +export class UncontrolledAlert extends UncontrolledAlert_ {} +export class UncontrolledButtonDropdown extends UncontrolledButtonDropdown_ {} +export class UncontrolledDropdown extends UncontrolledDropdown_ {} +export class UncontrolledTooltip extends UncontrolledTooltip_ {} +export { + UncontrolledButtonDropdownProps, + UncontrolledAlertProps, + UncontrolledDropdownProps, + UncontrolledTooltipProps +} from './lib/Uncontrolled'; From be6be65e15fd5fbab17c9cb0c7a41cc970435bab Mon Sep 17 00:00:00 2001 From: FaithForHumans Date: Tue, 29 May 2018 15:58:05 -0500 Subject: [PATCH 4/5] Updating tests --- types/reactstrap/reactstrap-tests.tsx | 329 ++++++++++++++++++++++++++ 1 file changed, 329 insertions(+) diff --git a/types/reactstrap/reactstrap-tests.tsx b/types/reactstrap/reactstrap-tests.tsx index 770cb01fa1..550a1242a8 100644 --- a/types/reactstrap/reactstrap-tests.tsx +++ b/types/reactstrap/reactstrap-tests.tsx @@ -3722,3 +3722,332 @@ function Example118() { ; ; } + +import { default as Alert_ } from './lib/Alert'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as Badge_ } from './lib/Badge'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as Breadcrumb_ } from './lib/Breadcrumb'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as BreadcrumbItem_ } from './lib/BreadcrumbItem'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as Button_ } from './lib/Button'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as ButtonDropdown_ } from './lib/ButtonDropdown'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as ButtonGroup_ } from './lib/ButtonGroup'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as ButtonToolbar_ } from './lib/ButtonToolbar'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as Card_ } from './lib/Card'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as CardBody_ } from './lib/CardBody'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as CardColumns_ } from './lib/CardColumns'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as CardDeck_ } from './lib/CardDeck'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as CardFooter_ } from './lib/CardFooter'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as CardGroup_ } from './lib/CardGroup'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as CardHeader_ } from './lib/CardHeader'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as CardImg_ } from './lib/CardImg'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as CardImgOverlay_ } from './lib/CardImgOverlay'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as CardLink_ } from './lib/CardLink'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as CardSubtitle_ } from './lib/CardSubtitle'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as CardText_ } from './lib/CardText'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as CardTitle_ } from './lib/CardTitle'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as Carousel_ } from './lib/Carousel'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as CarouselItem_ } from './lib/CarouselItem'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as CarouselControl_ } from './lib/CarouselControl'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as CarouselIndicators_ } from './lib/CarouselIndicators'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as CarouselCaption_ } from './lib/CarouselCaption'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as Col_ } from './lib/Col'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as Collapse_ } from './lib/Collapse'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as Container_ } from './lib/Container'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as Dropdown_ } from './lib/Dropdown'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as DropdownItem_ } from './lib/DropdownItem'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as DropdownMenu_ } from './lib/DropdownMenu'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as DropdownToggle_ } from './lib/DropdownToggle'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as Fade_ } from './lib/Fade'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as Form_ } from './lib/Form'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as FormFeedback_ } from './lib/FormFeedback'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as FormGroup_ } from './lib/FormGroup'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as FormText_ } from './lib/FormText'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as Input_ } from './lib/Input'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as InputGroup_ } from './lib/InputGroup'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as InputGroupAddon_ } from './lib/InputGroupAddon'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as InputGroupButtonDropdown_ } from './lib/InputGroupButtonDropdown'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as InputGroupText_ } from './lib/InputGroupText'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as Jumbotron_ } from './lib/Jumbotron'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as Label_ } from './lib/Label'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as ListGroup_ } from './lib/ListGroup'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as ListGroupItem_ } from './lib/ListGroupItem'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as ListGroupItemHeading_ } from './lib/ListGroupItemHeading'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as ListGroupItemText_ } from './lib/ListGroupItemText'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as Media_ } from './lib/Media'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as Modal_ } from './lib/Modal'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as ModalBody_ } from './lib/ModalBody'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as ModalFooter_ } from './lib/ModalFooter'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as ModalHeader_ } from './lib/ModalHeader'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as Nav_ } from './lib/Nav'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as Navbar_ } from './lib/Navbar'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as NavbarBrand_ } from './lib/NavbarBrand'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as NavbarToggler_ } from './lib/NavbarToggler'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as NavItem_ } from './lib/NavItem'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as NavLink_ } from './lib/NavLink'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as Pagination_ } from './lib/Pagination'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as PaginationItem_ } from './lib/PaginationItem'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as PaginationLink_ } from './lib/PaginationLink'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as Popover_ } from './lib/Popover'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as PopoverBody_ } from './lib/PopoverBody'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as PopoverHeader_ } from './lib/PopoverHeader'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as Progress_ } from './lib/Progress'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as Row_ } from './lib/Row'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as TabContent_ } from './lib/TabContent'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as Table_ } from './lib/Table'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as TabPane_ } from './lib/TabPane'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as Tag_ } from './lib/Tag'; /* tslint:disable-line: no-relative-import-in-test */ +import { default as Tooltip_ } from './lib/Tooltip'; /* tslint:disable-line: no-relative-import-in-test */ +import { UncontrolledAlert as UncontrolledAlert_ } from './lib/Uncontrolled'; /* tslint:disable-line: no-relative-import-in-test no-duplicate-imports */ +import { UncontrolledButtonDropdown as UncontrolledButtonDropdown_ } from './lib/Uncontrolled'; /* tslint:disable-line: no-relative-import-in-test no-duplicate-imports */ +import { UncontrolledDropdown as UncontrolledDropdown_ } from './lib/Uncontrolled'; /* tslint:disable-line: no-relative-import-in-test no-duplicate-imports */ +import { UncontrolledTooltip as UncontrolledTooltip_ } from './lib/Uncontrolled'; /* tslint:disable-line: no-relative-import-in-test no-duplicate-imports */ + +function AnyPropExample() { + return ( + + + + + + + + + + + + + + + + + + + + + + + {}} previous={() => {}}/> + + {}} directionText="" /> + {}} /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ); +} + +interface GenericInterface { + foo: number; + bar: boolean; + foobar?: string; +} +class AlertGeneric extends Alert {} +class BadgeGeneric extends Badge {} +class BreadcrumbGeneric extends Breadcrumb {} +class BreadcrumbItemGeneric extends BreadcrumbItem {} +class ButtonGeneric extends Button {} +class ButtonDropdownGeneric extends ButtonDropdown {} +class ButtonGroupGeneric extends ButtonGroup {} +class ButtonToolbarGeneric extends ButtonToolbar {} +class CardGeneric extends Card {} +class CardBodyGeneric extends CardBody {} +class CardColumnsGeneric extends CardColumns {} +class CardDeckGeneric extends CardDeck {} +class CardFooterGeneric extends CardFooter {} +class CardGroupGeneric extends CardGroup {} +class CardHeaderGeneric extends CardHeader {} +class CardImgGeneric extends CardImg {} +class CardImgOverlayGeneric extends CardImgOverlay {} +class CardLinkGeneric extends CardLink {} +class CardSubtitleGeneric extends CardSubtitle {} +class CardTextGeneric extends CardText {} +class CardTitleGeneric extends CardTitle {} +class CarouselGeneric extends Carousel {} +class CarouselItemGeneric extends CarouselItem {} +class CarouselControlGeneric extends CarouselControl {} +class CarouselIndicatorsGeneric extends CarouselIndicators {} +class CarouselCaptionGeneric extends CarouselCaption {} +class ColGeneric extends Col {} +class CollapseGeneric extends Collapse {} +class ContainerGeneric extends Container {} +class DropdownGeneric extends Dropdown {} +class DropdownItemGeneric extends DropdownItem {} +class DropdownMenuGeneric extends DropdownMenu {} +class DropdownToggleGeneric extends DropdownToggle {} +class FadeGeneric extends Fade {} +class FormGeneric extends Form {} +class FormFeedbackGeneric extends FormFeedback {} +class FormGroupGeneric extends FormGroup {} +class FormTextGeneric extends FormText {} +class InputGeneric extends Input {} +class InputGroupGeneric extends InputGroup {} +class InputGroupAddonGeneric extends InputGroupAddon {} +class InputGroupButtonDropdownGeneric extends InputGroupButtonDropdown {} +class InputGroupTextGeneric extends InputGroupText {} +class JumbotronGeneric extends Jumbotron {} +class LabelGeneric extends Label {} +class ListGroupGeneric extends ListGroup {} +class ListGroupItemGeneric extends ListGroupItem {} +class ListGroupItemHeadingGeneric extends ListGroupItemHeading {} +class ListGroupItemTextGeneric extends ListGroupItemText {} +class MediaGeneric extends Media {} +class ModalGeneric extends Modal {} +class ModalBodyGeneric extends ModalBody {} +class ModalFooterGeneric extends ModalFooter {} +class ModalHeaderGeneric extends ModalHeader {} +class NavGeneric extends Nav {} +class NavbarGeneric extends Navbar {} +class NavbarBrandGeneric extends NavbarBrand {} +class NavbarTogglerGeneric extends NavbarToggler {} +class NavItemGeneric extends NavItem {} +class NavLinkGeneric extends NavLink {} +class PaginationGeneric extends Pagination {} +class PaginationItemGeneric extends PaginationItem {} +class PaginationLinkGeneric extends PaginationLink {} +class PopoverGeneric extends Popover {} +class PopoverBodyGeneric extends PopoverBody {} +class PopoverHeaderGeneric extends PopoverHeader {} +class ProgressGeneric extends Progress {} +class RowGeneric extends Row {} +class TabContentGeneric extends TabContent {} +class TableGeneric extends Table {} +class TabPaneGeneric extends TabPane {} +class TagGeneric extends Tag {} +class TooltipGeneric extends Tooltip {} +class UncontrolledAlertGeneric extends UncontrolledAlert {} +class UncontrolledButtonDropdownGeneric extends UncontrolledButtonDropdown {} +class UncontrolledDropdownGeneric extends UncontrolledDropdown {} +class UncontrolledTooltipGeneric extends UncontrolledTooltip {} + +function GenericPropExample() { + return ( + + + + + + + + + + + + + + + + + + + + + + + {}} previous={() => {}}/> + + {}} directionText="" /> + {}} /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ); +} From 52a23c8c36784c3e53690c536366fed75d38dc17 Mon Sep 17 00:00:00 2001 From: FaithForHumans Date: Tue, 29 May 2018 16:04:53 -0500 Subject: [PATCH 5/5] Errors missed by tslint --- types/reactstrap/lib/Progress.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/reactstrap/lib/Progress.d.ts b/types/reactstrap/lib/Progress.d.ts index 9edeed0807..3a6b8178fa 100644 --- a/types/reactstrap/lib/Progress.d.ts +++ b/types/reactstrap/lib/Progress.d.ts @@ -1,3 +1,4 @@ +import * as React from 'react'; import { CSSModule } from '../index'; export type ProgressProps = React.HTMLAttributes & { @@ -14,5 +15,5 @@ export type ProgressProps = React.HTMLAttributes & { barClassName?: string; } & T; -declare class Progress extends React.Component> {}; +declare class Progress extends React.Component> {} export default Progress;