Neopolitan Pizza Maker

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

    2.3.0 • Public • Published

    Installation

    npm install --save @types/react-star-ratings

    Summary

    This package contains type definitions for react-star-ratings (https://github.com/ekeric13/react-star-ratings).

    Details

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

    index.d.ts

    // Type definitions for react-star-ratings 2.3
    // Project: https://github.com/ekeric13/react-star-ratings
    // Definitions by: Andrew Shkurenko <https://github.com/vanillkay>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    // TypeScript Version: 3.7
    
    import * as React from "react";
    
    interface StarRatingProps {
        rating?: number;
        numberOfStars?: number;
        changeRating?: (rating: number) => void;
        starRatedColor?: string;
        starEmptyColor?: string;
        starHoverColor?: string;
        starDimension?: string;
        starSpacing?: string;
        gradientPathName?: string;
        ignoreInlineStyles?: boolean;
        svgIconPath?: string;
        svgIconViewBox?: string;
        name?: string;
    }
    
    declare class StarRatings extends React.Component<
      StarRatingProps
    > {}
    
    export = StarRatings;

    Additional Details

    • Last updated: Fri, 01 Oct 2021 22:31:30 GMT
    • Dependencies: @types/react
    • Global values: none

    Credits

    These definitions were written by Andrew Shkurenko.

    Keywords

    none

    Install

    npm i @types/react-star-ratings

    DownloadsWeekly Downloads

    4,357

    Version

    2.3.0

    License

    MIT

    Unpacked Size

    4.34 kB

    Total Files

    4

    Last publish

    Collaborators

    • types