From 25ec8f450e613ecb50acdba5a7e121c66532a24a Mon Sep 17 00:00:00 2001 From: Linh Chau <94718676+linh-transcend@users.noreply.github.com> Date: Fri, 6 Dec 2024 20:24:38 +0000 Subject: [PATCH] lint + updated to BooleanString --- src/ui.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/ui.ts b/src/ui.ts index a7e1b7c..0adfaca 100644 --- a/src/ui.ts +++ b/src/ui.ts @@ -241,11 +241,12 @@ export const OptionalConsentManagerConfig = t.partial({ * Potential values: 'closed' (default) and 'open' */ uiShadowRoot: t.string, - /** - * The override value for whether to focus on the first descendant of the root arg w/data-initialFocus attribute - * Potential values: 'on' (default) and 'off' - * */ - autofocus: t.string, + /** + * The override value for whether to focus on the first descendant of the root arg w/data-initialFocus attribute + * Potential values: `'on'` (default) or `'off'` + * + */ + autofocus: BooleanString, }); /** type overload */