Use exact type for Breadcrumb.Item (#10372)

Using "any" breaks the build for TSLint users having the "no-unsafe-any" rule enabled.

See https://palantir.github.io/tslint/rules/no-unsafe-any/
This commit is contained in:
Karol Majewski 2018-05-04 18:47:44 +02:00 committed by 偏右
parent 9368e2df87
commit 1479726932

View File

@ -41,7 +41,7 @@ function defaultItemRender(route: Route, params: any, routes: Route[], paths: st
}
export default class Breadcrumb extends React.Component<BreadcrumbProps, any> {
static Item: any;
static Item: typeof BreadcrumbItem;
static defaultProps = {
prefixCls: 'ant-breadcrumb',