mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
added rivets definition and test
This commit is contained in:
Vendored
+35
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user