web: fix htmlFromString not working

This commit is contained in:
Jens Langhammer 2020-12-06 18:40:25 +01:00
parent c0166aec20
commit 773943e044
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ export function truncate(input?: string, max = 10): string {
}
export function htmlFromString(...strings: string[]): TemplateResult {
return html({ raw: strings, ...strings } as TemplateStringsArray);
return html(<TemplateStringsArray><unknown>strings);
}
export function loading<T>(v: T, actual: TemplateResult): TemplateResult {