mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
style(utils): fix lint error
This commit is contained in:
8
core/src/components.d.ts
vendored
8
core/src/components.d.ts
vendored
@@ -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 {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user