Extract inline styles to css (#370)

This commit is contained in:
A user 2023-01-02 22:30:54 -03:00 committed by GitHub
parent 2e5d27b6b6
commit 374531d10e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 121 additions and 114 deletions

View file

@ -142,7 +142,7 @@ export function humanFriendlyJoin(elements: any[], mapper: (e: any) => string =
* classes("one", "two") => "one two"
*/
export function classes(...classes: string[]) {
return classes.join(" ");
return classes.filter(c => typeof c === "string").join(" ");
}
/**