From 8849a2c237e860a0c72d54231c0b7dc034549da7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lorber?= Date: Fri, 4 Oct 2024 12:23:51 +0200 Subject: [PATCH] Fix HTML minifier TS types --- packages/html/index.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/html/index.ts b/packages/html/index.ts index fcf99a46df3f..9c71f4eec8db 100644 --- a/packages/html/index.ts +++ b/packages/html/index.ts @@ -16,10 +16,13 @@ export type Options = { | "only-metadata"; removeEmptyMetadataElements?: boolean; removeComments?: boolean; - preserveComments: string[]; + preserveComments?: string[]; minifyConditionalComments?: boolean; removeEmptyAttributes?: boolean; - removeRedundantAttributes?: boolean; + removeRedundantAttributes?: + | "none" + | "all" + | "smart"; collapseBooleanAttributes?: boolean; normalizeAttributes?: boolean; minifyJson?: boolean | { pretty?: boolean };