Nemo's Parental Misguidance

    @types/react-truncate
    TypeScript icon, indicating that this package has built-in type declarations

    2.3.4 • Public • Published

    Installation

    npm install --save @types/react-truncate

    Summary

    This package contains type definitions for react-truncate (https://github.com/One-com/react-truncate).

    Details

    Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-truncate.

    index.d.ts

    // Type definitions for react-truncate 2.3
    // Project: https://github.com/One-com/react-truncate
    // Definitions by: Matt Perry <https://github.com/mattvperry>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    // TypeScript Version: 2.8
    
    import * as React from 'react';
    
    export interface TruncateProps extends React.HTMLProps<Truncate> {
        lines?: number | false | undefined;
        ellipsis?: React.ReactNode | undefined;
        trimWhitespace?: boolean | undefined;
        onTruncate?(isTruncated: boolean): void;
    }
    
    declare class Truncate extends React.Component<TruncateProps> { }
    export default Truncate;

    Additional Details

    • Last updated: Wed, 07 Jul 2021 18:31:48 GMT
    • Dependencies: @types/react
    • Global values: none

    Credits

    These definitions were written by Matt Perry.

    Keywords

    none

    Install

    npm i @types/react-truncate

    DownloadsWeekly Downloads

    80,899

    Version

    2.3.4

    License

    MIT

    Unpacked Size

    3.92 kB

    Total Files

    4

    Last publish

    Collaborators

    • types