From cd4628da4d4f825adc8b9e1fb21eb71c753b6620 Mon Sep 17 00:00:00 2001 From: Brandy Carney Date: Mon, 24 Sep 2018 18:05:13 -0400 Subject: [PATCH] style(utils): fix lint error --- core/src/components.d.ts | 8 ++++---- core/src/utils/haptic.ts | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) 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);