Fixed tsc warnings and errors.

This commit is contained in:
Fabio Manganiello 2025-02-24 22:02:30 +01:00
parent 696bb89e04
commit b7c6ae1f55
Signed by: blacklight
GPG key ID: D90FBA7F76362774
9 changed files with 71 additions and 36 deletions
frontend/src/mixins

View file

@ -11,7 +11,7 @@ function isDate(key: string, value: string): boolean {
)
}
function parseValue(key: string, value: string | null): string | number | boolean | Date {
function parseValue(key: string, value: string | null): string | number | boolean | Date | undefined {
value = decodeURI(value?.trim() || '')
if (!value.length) {
return undefined