diff --git a/src/components/Ellipsis/index.d.ts b/src/components/Ellipsis/index.d.ts index 6c95bc0ac35ae92263dcf2262362fa7c389268e7..37d508d77335048de87287fc52fb9f457e89dc33 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 {}