diff --git a/types/react-bootstrap/index.d.ts b/types/react-bootstrap/index.d.ts index 2427c5cbc6..83f5f8db61 100644 --- a/types/react-bootstrap/index.d.ts +++ b/types/react-bootstrap/index.d.ts @@ -13,6 +13,7 @@ // Aaron Beall // Johann Rakotoharisoa // Andrew Makarov +// Duong Tran // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 diff --git a/types/react-bootstrap/lib/NavDropdown.d.ts b/types/react-bootstrap/lib/NavDropdown.d.ts index 909f5dd67a..f7b9460341 100644 --- a/types/react-bootstrap/lib/NavDropdown.d.ts +++ b/types/react-bootstrap/lib/NavDropdown.d.ts @@ -1,4 +1,5 @@ import * as React from 'react'; +import { Omit } from 'react-bootstrap'; import { DropdownBaseProps } from './Dropdown'; declare namespace NavDropdown { @@ -6,9 +7,10 @@ declare namespace NavDropdown { active?: boolean; noCaret?: boolean; eventKey?: any; + title: React.ReactNode; } - export type NavDropdownProps = NavDropdownBaseProps & React.HTMLProps; + export type NavDropdownProps = NavDropdownBaseProps & Omit, 'title'>; } declare class NavDropdown extends React.Component { } export = NavDropdown; diff --git a/types/react-bootstrap/test/react-bootstrap-individual-components-tests.tsx b/types/react-bootstrap/test/react-bootstrap-individual-components-tests.tsx index 8c4237d22b..c478e931b2 100644 --- a/types/react-bootstrap/test/react-bootstrap-individual-components-tests.tsx +++ b/types/react-bootstrap/test/react-bootstrap-individual-components-tests.tsx @@ -166,7 +166,7 @@ export class ReactBootstrapIndividualComponentsTest extends React.Component {