Add descriptions to template functions

This commit is contained in:
Gregory Schier
2024-10-09 11:25:27 -07:00
parent 0eb98a3882
commit 4a81818d05
7 changed files with 24 additions and 10 deletions

View File

@@ -294,6 +294,8 @@ pub struct GetTemplateFunctionsResponse {
#[ts(export, export_to = "events.ts")]
pub struct TemplateFunction {
pub name: String,
#[ts(optional)]
pub description: Option<String>,
/// Also support alternative names. This is useful for not breaking existing
/// tags when changing the `name` property