mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Handlebars.js definitions and tests added
This commit is contained in:
Vendored
+21
@@ -0,0 +1,21 @@
|
||||
// Type definitions for Handlebars 1.0
|
||||
// Project: http://handlebarsjs.com/
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
interface HandlebarsStatic {
|
||||
registerHelper(name: string, fn: Function, inverse?: bool): void;
|
||||
registerPartial(name: string, str): void;
|
||||
K();
|
||||
createFrame(object);
|
||||
|
||||
Exception(message: string): void;
|
||||
SafeString(str: string): void;
|
||||
|
||||
parse(string: string);
|
||||
print(ast);
|
||||
logger;
|
||||
log(level, str): void;
|
||||
compile(environment, options?, context?, asObject?);
|
||||
}
|
||||
|
||||
declare var Handlebars: HandlebarsStatic;
|
||||
Reference in New Issue
Block a user