Changed TabProps.title to ReactNode not string, per docs

This commit is contained in:
abeall
2017-10-07 00:34:24 -04:00
parent 161f894269
commit d820b8efeb
2 changed files with 4 additions and 2 deletions
+1
View File
@@ -9,6 +9,7 @@
// Kat Busch <https://github.com/katbusch>,
// Vito Samson <https://github.com/vitosamson>
// Karol Janyst <https://github.com/LKay>
// Aaron Beall <https://github.com/aaronbeall>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
+3 -2
View File
@@ -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<Tab> {
export interface TabProps extends TransitionCallbacks, Omit<React.HTMLProps<Tab>, "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<Tab.TabProps> {