Explorar o código

fix: Ellipsis types (#3370)

cutStrByFullLength should be string
信鑫-King %!s(int64=7) %!d(string=hai) anos
pai
achega
e8253b0686
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/components/Ellipsis/index.d.ts

+ 1 - 1
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<IEllipsisProps, any> {}