tshtml
    Preparing search index...

    Function isTemplateValue

    • Type guard to check if an object implements the TemplateValue interface.

      Parameters

      • obj: any

        The object to check

      Returns obj is TemplateValue

      True if the object has a render method that is a function

      if (isTemplateValue(obj)) {
      const html = obj.render(true);
      }