Skip to main content
Helper function to define a template with type safety. Use this when creating custom templates for your Open Graph images.
For the full rendering pipeline and all renderer context options, see Rendering Pipeline. For type definitions, see Type Definitions.

Function Signature

Parameters

config
object
required
Template configuration

Returns

template
OgTemplate<T>
The validated template object that can be used with createRenderer

Examples