Fix ability to add a freeform tag when using the searchableMappings element, add test

This commit is contained in:
Pieter Vander Vennet 2022-07-13 23:05:50 +02:00
parent f805178b9b
commit 9327d96550
7 changed files with 115 additions and 72 deletions

View file

@ -20,7 +20,7 @@ export interface Mapping {
readonly ifnot?: TagsFilter,
readonly then: TypedTranslation<object>,
readonly icon: string,
readonly iconClass: string
readonly iconClass: string | "small" | "medium" | "large" | "small-height" | "medium-height" | "large-height",
readonly hideInAnswer: boolean | TagsFilter
readonly addExtraTags: Tag[],
readonly searchTerms?: Record<string, string[]>