Implement rendererMapper pattern in []. Currently the template is implemented in Soy as the [] has a few features missing, but this should be ok for now.
GITHUB_BREAKING_CHANGES=n/a
@@ -488,6 +488,8 @@ public final class JsType {
String.format(
"function(!incrementaldomlib.IncrementalDomRenderer, %s, %s):(%s)",
parametersType, ijType, returnType));
+ } else if (kind == JsTypeKind.LITSRC) {
+ builder.addType(String.format("function(%s):(%s)", parametersType, "TemplateResult"));
} else {
builder.addType(
String.format("function(%s, %s):(%s)", parametersType, ijType, returnType));
