# @types/rivets

> TypeScript definitions for rivets

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

## Install

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

## 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; pre 1.0.

Negative: abandoned.

## Facts

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

## Links

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

## Dependencies (1)

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

## Recent versions

- 0.9.5 (latest) — 2023-11-07
- 0.9.2 (ts3.6) — 2021-07-08
- 0.9.1 (ts2.3) — 2019-02-13
- 0.0.27 (ts2.0) — 2016-09-19
- 0.9.4 — 2023-10-18
- 0.9.3 — 2023-09-27
- 0.9.0 — 2017-10-10
- 0.0.28 — 2017-06-15
- 0.0.26 — 2016-07-14
- 0.0.25-alpha — 2016-07-08
- 0.0.24-alpha — 2016-07-04
- 0.0.23-alpha — 2016-07-02
- 0.0.22-alpha — 2016-07-01
- 0.0.21-alpha — 2016-07-01
- 0.0.20-alpha — 2016-05-25
- … 3 more at https://npm.io/package/@types/rivets/versions

## README

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

export namespace Rivets {
    interface View {
        build(): void;
        bind(): void;
        unbind(): void;
    }

    interface Rivets {
        // Global binders.
        binders: object;

        // Global components.
        components: object;

        // Global formatters.
        formatters: object;

        // Global sightglass adapters.
        adapters: object;

        // Default attribute prefix.
        prefix: string;

        // Default template delimiters.
        templateDelimiters: string[];

        // Default sightglass root interface.
        rootInterface: string;

        // Preload data by default.
        preloadData: boolean;

        handler(context: any, ev: Event, biding: any): void;

        configure(options?: {
            // Attribute prefix in templates
            prefix?: string | undefined;

            // Preload templates with initial data on bind
            preloadData?: boolean | undefined;

            // Root sightglass interface for keypaths
            rootInterface?: string | undefined;

            // Template delimiters for text bindings
            templateDelimiters?: string[] | undefined;

            // Augment the event handler of the on-* binder
            handler?(context: any, ev: Event, biding: any): void;
        }): void;

        bind(element: HTMLElement | HTMLElement[] | JQuery, models: object, options?: object): View;
    }
}

export const Rivets: Rivets.Rivets;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 15:11:36 GMT
 * Dependencies: [@types/jquery](https://npmjs.com/package/@types/jquery)

# Credits
These definitions were written by [ Trevor Baron](https://github.com/TrevorDev), and [Jakub Matjanowski](https://github.com/matjanos).

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