mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-27 12:21:19 +08:00
Handlebars.js definitions and tests added
This commit is contained in:
1 parent
dd5444a11b
commit
45eac85afb
3 files changed
+102
-3
No files matched your search
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