From eaca60aad7c64a08b9eeb28873532a6c51aea542 Mon Sep 17 00:00:00 2001 From: Rayron Victor Date: Mon, 24 Sep 2018 16:16:24 -0300 Subject: [PATCH] Fix lint export missing declarations --- src/components/Ellipsis/index.d.ts | 3 +++ src/components/PageHeader/index.d.ts | 2 ++ 2 files changed, 5 insertions(+) diff --git a/src/components/Ellipsis/index.d.ts b/src/components/Ellipsis/index.d.ts index 9fd49f17..03264aa9 100644 --- a/src/components/Ellipsis/index.d.ts +++ b/src/components/Ellipsis/index.d.ts @@ -8,4 +8,7 @@ export interface IEllipsisProps { fullWidthRecognition?: boolean; } +export function getStrFullLength(str: string): number; +export function cutStrByFullLength(str: string, maxLength: number): number; + export default class Ellipsis extends React.Component {} diff --git a/src/components/PageHeader/index.d.ts b/src/components/PageHeader/index.d.ts index c64e592b..4f632834 100644 --- a/src/components/PageHeader/index.d.ts +++ b/src/components/PageHeader/index.d.ts @@ -20,4 +20,6 @@ export interface IPageHeaderProps { hiddenBreadcrumb?:boolean; } +export function getBreadcrumb(breadcrumbNameMap: Object, url: string): typeof Object; + export default class PageHeader extends React.Component {} -- GitLab