2.3.3 • Published 6 months ago

@types/react-star-ratings v2.3.3

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

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.