mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
22 lines
619 B
TypeScript
22 lines
619 B
TypeScript
// Type definitions for react-dotdotdot 1.2
|
|
// Project: https://github.com/CezaryDanielNowak/React-dotdotdot
|
|
// Definitions by: Jakub Czyżewski <https://github.com/jczyzewski>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.8
|
|
|
|
import { ComponentType } from 'react';
|
|
|
|
interface DotDotDotProps {
|
|
clamp: number | string | boolean;
|
|
useNativeClamp?: boolean;
|
|
splitOnChars?: string[];
|
|
animate?: boolean;
|
|
truncationChar?: string;
|
|
truncationHTML?: string;
|
|
tagName?: string;
|
|
}
|
|
|
|
declare const Dotdotdot: ComponentType<DotDotDotProps>;
|
|
|
|
export = Dotdotdot;
|