Type guard to check if an object implements the TemplateValue interface.
The object to check
True if the object has a render method that is a function
if (isTemplateValue(obj)) { const html = obj.render(true);} Copy
if (isTemplateValue(obj)) { const html = obj.render(true);}
Type guard to check if an object implements the TemplateValue interface.