Socket
Socket
Sign inDemoInstall

@types/react-star-rating-component

Package Overview
Dependencies
3
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.4.1 to 1.4.2

60

react-star-rating-component/index.d.ts

@@ -10,45 +10,49 @@ // Type definitions for react-star-rating-component 1.4

interface StarRatingComponentProps {
/** name of the radio input */
name: string;
/** name of the radio input */
name: string;
/** the value of the star rating to display. i.e. the number of filled stars */
value: number;
/** the value of the star rating to display. i.e. the number of filled stars */
value: number;
/** number of icons in rating, default `5` */
starCount?: number | undefined;
/** number of icons in rating, default `5` */
starCount?: number | undefined;
onStarClick?: ((nextValue: number, prevValue: number, name: string) => void) | undefined;
onStarClick?: ((nextValue: number, prevValue: number, name: string) => void) | undefined;
onStarHover?: ((nextValue: number, prevValue: number, name: string) => void) | undefined;
onStarHover?: ((nextValue: number, prevValue: number, name: string) => void) | undefined;
onStarHoverOut?: ((nextValue: number, prevValue: number, name: string) => void) | undefined;
onStarHoverOut?: ((nextValue: number, prevValue: number, name: string) => void) | undefined;
/** render method for the full-star icon */
renderStarIcon?: ((
nextValue: number,
prevValue: number,
name: string
) => React.ReactNode | string) | undefined;
/** render method for the full-star icon */
renderStarIcon?:
| ((
nextValue: number,
prevValue: number,
name: string,
) => React.ReactNode | string)
| undefined;
/** render method for the half-star icon */
renderStarIconHalf?: ((
nextValue: number,
prevValue: number,
name: string
) => React.ReactNode | string) | undefined;
/** render method for the half-star icon */
renderStarIconHalf?:
| ((
nextValue: number,
prevValue: number,
name: string,
) => React.ReactNode | string)
| undefined;
/** color of selected icons */
starColor?: string | undefined;
/** color of selected icons */
starColor?: string | undefined;
/** color of non-selected icons */
emptyStarColor?: string | undefined;
/** color of non-selected icons */
emptyStarColor?: string | undefined;
/** is component available for editing, default `true` */
editing?: boolean | undefined;
/** is component available for editing, default `true` */
editing?: boolean | undefined;
}
declare class StarRatingComponent extends React.Component<
StarRatingComponentProps
StarRatingComponentProps
> {}
export = StarRatingComponent;
{
"name": "@types/react-star-rating-component",
"version": "1.4.1",
"version": "1.4.2",
"description": "TypeScript definitions for react-star-rating-component",

@@ -25,4 +25,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-star-rating-component",

},
"typesPublisherContentHash": "df071bc87c01bce6388021c733a45d19f06a78ef812c9df837f9e7b4fdf6a304",
"typeScriptVersion": "3.6"
"typesPublisherContentHash": "9b80c253ac863f282b88f1e02517cb4403a8d48a602f930f138f8a9489c64cb6",
"typeScriptVersion": "4.5"
}

@@ -20,43 +20,47 @@ # Installation

interface StarRatingComponentProps {
/** name of the radio input */
name: string;
/** name of the radio input */
name: string;
/** the value of the star rating to display. i.e. the number of filled stars */
value: number;
/** the value of the star rating to display. i.e. the number of filled stars */
value: number;
/** number of icons in rating, default `5` */
starCount?: number | undefined;
/** number of icons in rating, default `5` */
starCount?: number | undefined;
onStarClick?: ((nextValue: number, prevValue: number, name: string) => void) | undefined;
onStarClick?: ((nextValue: number, prevValue: number, name: string) => void) | undefined;
onStarHover?: ((nextValue: number, prevValue: number, name: string) => void) | undefined;
onStarHover?: ((nextValue: number, prevValue: number, name: string) => void) | undefined;
onStarHoverOut?: ((nextValue: number, prevValue: number, name: string) => void) | undefined;
onStarHoverOut?: ((nextValue: number, prevValue: number, name: string) => void) | undefined;
/** render method for the full-star icon */
renderStarIcon?: ((
nextValue: number,
prevValue: number,
name: string
) => React.ReactNode | string) | undefined;
/** render method for the full-star icon */
renderStarIcon?:
| ((
nextValue: number,
prevValue: number,
name: string,
) => React.ReactNode | string)
| undefined;
/** render method for the half-star icon */
renderStarIconHalf?: ((
nextValue: number,
prevValue: number,
name: string
) => React.ReactNode | string) | undefined;
/** render method for the half-star icon */
renderStarIconHalf?:
| ((
nextValue: number,
prevValue: number,
name: string,
) => React.ReactNode | string)
| undefined;
/** color of selected icons */
starColor?: string | undefined;
/** color of selected icons */
starColor?: string | undefined;
/** color of non-selected icons */
emptyStarColor?: string | undefined;
/** color of non-selected icons */
emptyStarColor?: string | undefined;
/** is component available for editing, default `true` */
editing?: boolean | undefined;
/** is component available for editing, default `true` */
editing?: boolean | undefined;
}
declare class StarRatingComponent extends React.Component<
StarRatingComponentProps
StarRatingComponentProps
> {}

@@ -69,3 +73,3 @@

### Additional Details
* Last updated: Thu, 08 Jul 2021 22:41:35 GMT
* Last updated: Wed, 27 Sep 2023 07:12:04 GMT
* Dependencies: [@types/react](https://npmjs.com/package/@types/react)

@@ -72,0 +76,0 @@ * Global values: none

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc