added rivets definition and test

This commit is contained in:
unknown
2015-06-05 20:37:42 -04:00
parent 8c7444882a
commit a46c72a1fb
2 changed files with 53 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
// Type definitions for body-parser
// 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;
}