From 6200d6204bc471fa49d8c826ca469bdb7586c453 Mon Sep 17 00:00:00 2001 From: cmoulliard Date: Mon, 22 Apr 2024 18:11:07 +0200 Subject: [PATCH] Change should to switch. #24002 Signed-off-by: cmoulliard --- docs/features/software-templates/writing-templates.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/features/software-templates/writing-templates.md b/docs/features/software-templates/writing-templates.md index 0b5f8c4948..4b169a0714 100644 --- a/docs/features/software-templates/writing-templates.md +++ b/docs/features/software-templates/writing-templates.md @@ -768,7 +768,7 @@ The `addTemplateFilters` property accepts a `Record` additionalTemplateFilters?: Record; ``` -where the first parameter is the name of the filter and the second `TemplateFilter` receives a list of `JSON value` arguments. The `templateFilter()` function should return a JsonValue (Json array, object or primitive). +where the first parameter is the name of the filter and the second `TemplateFilter` receives a list of `JSON value` arguments. The `templateFilter()` function must return a JsonValue (Json array, object or primitive). ```ts title="plugins/scaffolder-node/src/types.ts" export type TemplateFilter = (...args: JsonValue[]) => JsonValue | undefined;