mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-03 03:31:47 +00:00
Changed TabProps.title to ReactNode not string, per docs
This commit is contained in:
Vendored
+1
@@ -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
|
||||
|
||||
|
||||
Vendored
+3
-2
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user