From e97c03e94d5a74cd7ea4e34113c2969400908686 Mon Sep 17 00:00:00 2001 From: Rayron Victor Date: Tue, 25 Sep 2018 09:33:41 -0300 Subject: [PATCH] fix wrong placed `getBreadcrumb` module declaration --- src/components/PageHeader/breadcrumb.d.ts | 6 ++++++ src/components/PageHeader/index.d.ts | 2 -- src/components/PageHeader/index.test.js | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 src/components/PageHeader/breadcrumb.d.ts diff --git a/src/components/PageHeader/breadcrumb.d.ts b/src/components/PageHeader/breadcrumb.d.ts new file mode 100644 index 00000000..ce6e6244 --- /dev/null +++ b/src/components/PageHeader/breadcrumb.d.ts @@ -0,0 +1,6 @@ +import * as React from 'react'; +import { IPageHeaderProps } from './index' + +export default class BreadcrumbView extends React.Component {} + +export function getBreadcrumb(breadcrumbNameMap: Object, url: string): Object; diff --git a/src/components/PageHeader/index.d.ts b/src/components/PageHeader/index.d.ts index 4f632834..c64e592b 100644 --- a/src/components/PageHeader/index.d.ts +++ b/src/components/PageHeader/index.d.ts @@ -20,6 +20,4 @@ export interface IPageHeaderProps { hiddenBreadcrumb?:boolean; } -export function getBreadcrumb(breadcrumbNameMap: Object, url: string): typeof Object; - export default class PageHeader extends React.Component {} diff --git a/src/components/PageHeader/index.test.js b/src/components/PageHeader/index.test.js index e801a585..d22706e9 100644 --- a/src/components/PageHeader/index.test.js +++ b/src/components/PageHeader/index.test.js @@ -1,4 +1,4 @@ -import { getBreadcrumb } from './index'; +import { getBreadcrumb } from './breadcrumb'; import { urlToList } from '../_utils/pathTools'; const routerData = { -- GitLab