Add "Handlebars.VM.resolvePartial" to type definitions

- Handlebars.VM is actually not part of the API,
  but Handlebars.VM.resolvePartial is mentioned
  in the documentation and is thus now treated
  as part of the API.

Closes #1534
This commit is contained in:
Andrew Leedham
2019-07-03 20:37:42 +01:00
committed by Nils Knappmeier
parent f119497312
commit 133b96a2ff
3 changed files with 24 additions and 0 deletions
+3
View File
@@ -209,6 +209,9 @@ export function wrapProgram(container, i, fn, data, declaredBlockParams, blockPa
return prog;
}
/**
* This is currently part of the official API, therefore implementation details should not be changed.
*/
export function resolvePartial(partial, context, options) {
if (!partial) {
if (options.name === '@partial-block') {