mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
(See also #24846 for prior work.) Update Reactstrap to declare components that aren't stateless functional components as regular components. This allows consumers to use ref-related APIs, namely, the `ref` prop and `forwardRef`. Previously, Typescript would outright deny passing `ref`, and any attempts to use `forwardRef` would cause very confusing type errors claiming that the component class you were trying to refer to didn't exist (?!). Note that many components actually are implemented as stateless components, and as such their typings haven't been changed. I found the list of components needing this update by checking out current master of reactstrap (1d20d6d52c258428df39429e09c84b0ddcac76ee), then ```sh cd src rg 'extends (React.)?Component' -l | grep -v '__tests__' ``` |
||
|---|---|---|
| .. | ||
| Alert.d.ts | ||
| Badge.d.ts | ||
| Breadcrumb.d.ts | ||
| BreadcrumbItem.d.ts | ||
| Button.d.ts | ||
| ButtonDropdown.d.ts | ||
| ButtonGroup.d.ts | ||
| ButtonToolbar.d.ts | ||
| Card.d.ts | ||
| CardBody.d.ts | ||
| CardColumns.d.ts | ||
| CardDeck.d.ts | ||
| CardFooter.d.ts | ||
| CardGroup.d.ts | ||
| CardHeader.d.ts | ||
| CardImg.d.ts | ||
| CardImgOverlay.d.ts | ||
| CardLink.d.ts | ||
| CardSubtitle.d.ts | ||
| CardText.d.ts | ||
| CardTitle.d.ts | ||
| Carousel.d.ts | ||
| CarouselCaption.d.ts | ||
| CarouselControl.d.ts | ||
| CarouselIndicators.d.ts | ||
| CarouselItem.d.ts | ||
| Col.d.ts | ||
| Collapse.d.ts | ||
| Container.d.ts | ||
| Dropdown.d.ts | ||
| DropdownItem.d.ts | ||
| DropdownMenu.d.ts | ||
| DropdownToggle.d.ts | ||
| Fade.d.ts | ||
| Form.d.ts | ||
| FormFeedback.d.ts | ||
| FormGroup.d.ts | ||
| FormText.d.ts | ||
| Input.d.ts | ||
| InputGroup.d.ts | ||
| InputGroupAddon.d.ts | ||
| InputGroupButtonDropdown.d.ts | ||
| InputGroupText.d.ts | ||
| Jumbotron.d.ts | ||
| Label.d.ts | ||
| ListGroup.d.ts | ||
| ListGroupItem.d.ts | ||
| ListGroupItemHeading.d.ts | ||
| ListGroupItemText.d.ts | ||
| Media.d.ts | ||
| Modal.d.ts | ||
| ModalBody.d.ts | ||
| ModalFooter.d.ts | ||
| ModalHeader.d.ts | ||
| Nav.d.ts | ||
| Navbar.d.ts | ||
| NavbarBrand.d.ts | ||
| NavbarToggler.d.ts | ||
| NavItem.d.ts | ||
| NavLink.d.ts | ||
| Pagination.d.ts | ||
| PaginationItem.d.ts | ||
| PaginationLink.d.ts | ||
| Popover.d.ts | ||
| PopoverBody.d.ts | ||
| PopoverHeader.d.ts | ||
| Popper.d.ts | ||
| Progress.d.ts | ||
| Row.d.ts | ||
| TabContent.d.ts | ||
| Table.d.ts | ||
| TabPane.d.ts | ||
| Tag.d.ts | ||
| Tooltip.d.ts | ||
| Uncontrolled.d.ts | ||