diff --git a/core/src/components.d.ts b/core/src/components.d.ts index 5017c8f771..2075c004bb 100644 --- a/core/src/components.d.ts +++ b/core/src/components.d.ts @@ -441,7 +441,7 @@ export namespace Components { /** * The icon name to use for the back button. */ - 'icon'?: string; + 'icon'?: string | null; /** * The mode determines which platform styles to use. Possible values are: `"ios"` or `"md"`. */ @@ -449,7 +449,7 @@ export namespace Components { /** * The text to display in the back button. */ - 'text'?: string; + 'text'?: string | null; } interface IonBackButtonAttributes extends StencilHTMLAttributes { /** @@ -463,7 +463,7 @@ export namespace Components { /** * The icon name to use for the back button. */ - 'icon'?: string; + 'icon'?: string | null; /** * The mode determines which platform styles to use. Possible values are: `"ios"` or `"md"`. */ @@ -471,7 +471,7 @@ export namespace Components { /** * The text to display in the back button. */ - 'text'?: string; + 'text'?: string | null; } interface IonBackdrop { diff --git a/core/src/utils/haptic.ts b/core/src/utils/haptic.ts index 95663d99d1..be99233a26 100644 --- a/core/src/utils/haptic.ts +++ b/core/src/utils/haptic.ts @@ -53,7 +53,7 @@ export function hapticSelectionEnd() { * Use this to indicate success/failure/warning to the user. * options should be of the type `{ type: 'success' }` (or `warning`/`error`) */ -export function hapticNotification(options: { type: 'success' | 'warning' | 'error' }) { +export function hapticNotification(options: { type: 'success' | 'warning' | 'error' }) { const engine = (window as any).TapticEngine; if (engine) { engine.notification(options);