From e8253b06865b925dd0c87282b4b799f4419d6bd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BF=A1=E9=91=AB-King?= Date: Sun, 13 Jan 2019 22:32:38 +0800 Subject: [PATCH] fix: Ellipsis types (#3370) cutStrByFullLength should be string --- src/components/Ellipsis/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Ellipsis/index.d.ts b/src/components/Ellipsis/index.d.ts index 6c95bc0a..37d508d7 100644 --- a/src/components/Ellipsis/index.d.ts +++ b/src/components/Ellipsis/index.d.ts @@ -16,6 +16,6 @@ export interface IEllipsisProps { } export function getStrFullLength(str: string): number; -export function cutStrByFullLength(str: string, maxLength: number): number; +export function cutStrByFullLength(str: string, maxLength: number): string; export default class Ellipsis extends React.Component {} -- GitLab