DefinitelyTyped/rivets/rivets.d.ts
2015-06-05 20:41:14 -04:00

36 lines
911 B
TypeScript

// Type definitions for rivets
// Project: http://rivetsjs.com/
// Definitions by: Trevor Baron <https://github.com/TrevorDev>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
interface FinchStatic {
configure(options?: {
/**
* Attribute prefix in templates
*/
prefix?: string;
/**
* Preload templates with initial data on bind
*/
preloadData?: boolean;
/**
* Root sightglass interface for keypaths
*/
rootInterface?: string;
/**
* Template delimiters for text bindings
*/
templateDelimiters?: Array<string>
/**
* Augment the event handler of the on-* binder
*/
handler?: Function;
}):void;
bind(element:any, template:any):void;
}
declare var Rivets: FinchStatic;
declare module "rivets" {
export = Rivets;
}