Skip to content

Commit

Permalink
fix: Ellipsis types (ant-design#3370)
Browse files Browse the repository at this point in the history
cutStrByFullLength should be string
  • Loading branch information
信鑫-King authored and chenshuai2144 committed Jan 13, 2019
1 parent 0daf098 commit e8253b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Ellipsis/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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> {}

0 comments on commit e8253b0

Please sign in to comment.