# @types/raty

> TypeScript definitions for raty

Latest version **2.7.32** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/raty
pnpm add @types/raty
yarn add @types/raty
bun add @types/raty
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.7.32 |
| Published | 2023-11-07 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 6.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51440 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/raty
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/raty
- npm.io page: https://npm.io/package/@types/raty

## Dependencies (1)

- [@types/jquery](https://npm.io/package/@types/jquery.md) *

## Recent versions

- 2.7.32 (latest) — 2023-11-07
- 2.7.29 (ts3.6) — 2021-07-08
- 2.7.28 (ts2.3) — 2017-08-21
- 2.7.26 (ts2.0) — 2016-09-19
- 2.7.31 — 2023-10-18
- 2.7.30 — 2023-09-27
- 2.7.27 — 2017-06-15
- 2.7.25 — 2016-07-14
- 2.7.24-alpha — 2016-07-08
- 2.7.23-alpha — 2016-07-04
- 2.7.22-alpha — 2016-07-02
- 2.7.21-alpha — 2016-07-01
- 2.7.20-alpha — 2016-07-01
- 2.7.19-alpha — 2016-05-25
- 2.7.18-alpha — 2016-05-20
- … 2 more at https://npm.io/package/@types/raty/versions

## README

# Installation
> `npm install --save @types/raty`

# Summary
This package contains type definitions for raty (https://github.com/wbotelhos/raty).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/raty.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/raty/index.d.ts)
````ts
/// <reference types="jquery"/>

interface JQuery {
    raty(): JQuery;
    raty(options: JQueryRatyOptions): JQuery;
    raty(method: string, parameter: any): any;
    raty(method: "score"): number;
    raty(method: "score", score: number): void;
    raty(method: "click", star: number): void;
    raty(method: "readonly", on: boolean): void;
    raty(method: "cancel", on: boolean): void;
    raty(method: "reload"): void;
    raty(method: "set", options: JQueryRatyOptions): void;
    raty(method: "destroy"): JQuery;
    raty(method: "move", number: number): void;
}

interface JQueryRatyOptions {
    cancel?: boolean | undefined;
    cancelClass?: string | undefined;
    cancelHint?: string | undefined;
    cancelOff?: string | undefined;
    cancelOn?: string | undefined;
    cancelPlace?: string | undefined;
    click?: ((score: number, event: JQueryEventObject) => void) | undefined;
    half?: boolean | undefined;
    halfShow?: boolean | undefined;
    hints?: string[] | undefined;
    iconRange?: any[][] | undefined;
    mouseout?: ((score: number, event: JQueryEventObject) => void) | undefined;
    mouseover?: ((score: number, event: JQueryEventObject) => void) | undefined;
    noRatedMsg?: string | undefined;
    number?: number | undefined;
    numberMax?: number | undefined;
    path?: string | undefined;
    precision?: boolean | undefined;
    readOnly?: boolean | undefined;
    round?: JQueryRatyRoundingOptions | undefined;
    score?: number | undefined;
    scoreName?: string | undefined;
    single?: boolean | undefined;
    space?: boolean | undefined;
    starHalf?: string | undefined;
    starOff?: string | undefined;
    starOn?: string | undefined;
    target?: string | undefined;
    targetFormat?: string | undefined;
    targetKeep?: boolean | undefined;
    targetScore?: string | undefined;
    targetText?: string | undefined;
    targetType?: string | undefined;
    starType?: string | undefined;
}

interface JQueryRatyRoundingOptions {
    down: number;
    full: number;
    up: number;
}

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: [@types/jquery](https://npmjs.com/package/@types/jquery)

# Credits
These definitions were written by [Matt Wheatley](https://github.com/terrawheat).

---
_Source: https://npm.io/package/@types/raty · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
