From d820b8efeb77bfe6fff3b50da75beeaa999d0ea6 Mon Sep 17 00:00:00 2001 From: abeall Date: Sat, 7 Oct 2017 00:34:24 -0400 Subject: [PATCH] Changed TabProps.title to ReactNode not string, per docs --- types/react-bootstrap/index.d.ts | 1 + types/react-bootstrap/lib/Tab.d.ts | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/types/react-bootstrap/index.d.ts b/types/react-bootstrap/index.d.ts index dcb5998f7a..8ccff26951 100644 --- a/types/react-bootstrap/index.d.ts +++ b/types/react-bootstrap/index.d.ts @@ -9,6 +9,7 @@ // Kat Busch , // Vito Samson // Karol Janyst +// Aaron Beall // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/react-bootstrap/lib/Tab.d.ts b/types/react-bootstrap/lib/Tab.d.ts index f30264a562..1c98d8c0a3 100644 --- a/types/react-bootstrap/lib/Tab.d.ts +++ b/types/react-bootstrap/lib/Tab.d.ts @@ -1,17 +1,18 @@ import * as React from 'react'; -import { TransitionCallbacks } from 'react-bootstrap'; +import { TransitionCallbacks, Omit } from 'react-bootstrap'; import * as TabContainer from './TabContainer'; import * as TabPane from './TabPane'; import * as TabContent from './TabContent'; declare namespace Tab { - export interface TabProps extends TransitionCallbacks, React.HTMLProps { + export interface TabProps extends TransitionCallbacks, Omit, "title"> { animation?: boolean; 'aria-labelledby'?: string; bsClass?: string; eventKey?: any; // TODO: Add more specific type unmountOnExit?: boolean; tabClassName?: string; + title?: React.ReactNode; // Override HTMLProps.title to allow nodes not just strings } } declare class Tab extends React.Component {