0.9.5 • Published 6 months ago
@types/rivets v0.9.5
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
// Type definitions for rivets 0.9
// Project: http://rivetsjs.com/, https://github.com/mikeric/rivets
// Definitions by: Trevor Baron <https://github.com/TrevorDev>
// Jakub Matjanowski <https://github.com/matjanos>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
/// <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: Thu, 08 Jul 2021 22:42:06 GMT
- Dependencies: @types/jquery
- Global values: none
Credits
These definitions were written by Trevor Baron, and Jakub Matjanowski.
0.9.4
7 months ago
0.9.3
7 months ago
0.9.5
6 months ago
0.9.2
3 years ago
0.9.1
5 years ago
0.9.0
7 years ago
0.0.28
7 years ago
0.0.27
8 years ago
0.0.26
8 years ago
0.0.25-alpha
8 years ago
0.0.24-alpha
8 years ago
0.0.23-alpha
8 years ago
0.0.22-alpha
8 years ago
0.0.21-alpha
8 years ago
0.0.20-alpha
8 years ago
0.0.19-alpha
8 years ago
0.0.14-alpha
8 years ago
0.0.13-alpha
8 years ago