Skip to content

Commit 77eb6ad

Browse files
committed
[react-bootstrap] Ensure forwards compatiblity with React 19
1 parent 58844c7 commit 77eb6ad

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

types/react-bootstrap/lib/NavItem.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as React from "react";
22
import { SelectCallback, Sizes } from "react-bootstrap";
33

44
declare namespace NavItem {
5-
export interface NavItemProps extends React.HTMLProps<NavItem> {
5+
export interface NavItemProps extends Omit<React.HTMLProps<NavItem>, "onToggle"> {
66
active?: boolean | undefined;
77
brand?: any; // TODO: Add more specific type
88
bsSize?: Sizes | undefined;

types/react-bootstrap/lib/Navbar.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import NavbarHeader = require("./NavbarHeader");
66
import NavbarToggle = require("./NavbarToggle");
77

88
declare namespace Navbar {
9-
export interface NavbarProps extends React.HTMLProps<Navbar> {
9+
export interface NavbarProps extends Omit<React.HTMLProps<Navbar>, "onToggle"> {
1010
brand?: any; // TODO: Add more specific type
1111
bsSize?: Sizes | undefined;
1212
bsStyle?: string | undefined;

0 commit comments

Comments
 (0)