Sergei Dorogin
7f2ac5d513
Handlebars: improved typings ( #23215 )
...
* Handlebars: Added HelperDelegate and HelperOptions interfaces, data field to RuntimeOptions
WIP
* Handlebars:
Added HelperDelegate and HelperOptions interfaces, TemplateDelegate, Template
RuntimeOptions: added data and blockParams fields
registerHelper and registerPartial methods: typed signatures for callbacks (HelperDelegate)
* Handlebars:
SafeString and Utils were moved into Handlebars namespace
fix: added tests into tsconfig.json::files
fix: handlebars-tests.ts: made tslint happy
* Handlebars: updated authors, bumped up version (to the latest 4.0.11)
* small fixes of typos (missing semicolons)
2018-04-10 10:19:30 -07:00
Andy Hanson
45c9246c09
Remove esModuleInterop from tsconfigs (no longer mandatory)
2018-02-14 14:55:13 -08:00
Andy
bef4d2b27d
Enable "esModuleInterop" in all tsconfigs ( #23354 )
2018-02-05 11:01:56 -08:00
Andy
19f89399e4
Ensure every package has a tslint.json ( #21009 )
...
* Ensure every package has a tslint.json
* Fixes
2017-10-25 11:13:50 -07:00
Andy
947a8fb761
Enable strictFunctionTypes ( #20373 )
2017-10-06 14:03:03 -07:00
Andy
924fafffc0
Fix remaining lint errors ( #19166 )
2017-08-20 15:37:53 -07:00
Albert Willemsen
5dcf627501
fix for issue #18211 . ( #18213 )
2017-07-24 10:11:00 -07:00
Diogo Franco (Kovensky)
729a3d6985
Also add template arguments to Handlebars.compile and Handlebars.template
2017-07-04 11:48:48 +09:00
Diogo Franco (Kovensky)
fda5974379
Use the typed HandlebarsTemplateDelegate in tests
2017-07-04 11:47:10 +09:00
Diogo Franco (Kovensky)
7259fc89f9
Update the minimum required version on affected files
2017-07-04 11:43:41 +09:00
Diogo Franco
6af5d2a55f
Update TypeScript version
2017-07-04 11:35:54 +09:00
Diogo Franco
c4091e4888
Improve type of HandlebarsTemplateDelegate
...
Adds an optional type argument that should be useful for .hbs.d.ts files.
The RuntimeOptions were specified by looking at https://github.com/wycats/handlebars.js/blob/680ec96/lib/handlebars/runtime.js#L131-L171 -- these don't seem to be documented anywhere.
2017-07-04 11:28:17 +09:00
Sergei Dorogin
5bdcc082d4
Handlebars: added missing Utils.blockParams method ( #16616 )
...
* handlebars: added partials/decorators fields and registerDecorator/unregisterDecorator methods
* [handlerbars] added missing Utils.blockParams method, change signature Utils.createFrame
2017-06-02 06:41:35 -07:00
Andy Hanson
354cec620d
Move all packages to a types directory
2017-03-24 14:27:52 -07:00