mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-05-02 00:07:23 +08:00
chore(build): switch to eslint
This commit is contained in:
@@ -5,7 +5,6 @@ import { Injectable } from '@angular/core';
|
||||
* @name Taptic Engine
|
||||
* @description
|
||||
* An Ionic plugin to use Taptic Engine API on iPhone 7, 7 Plus or newer.
|
||||
*
|
||||
* @usage
|
||||
* ```typescript
|
||||
* import { TapticEngine } from '@awesome-cordova-plugins/taptic-engine/ngx';
|
||||
@@ -35,6 +34,7 @@ import { Injectable } from '@angular/core';
|
||||
export class TapticEngine extends AwesomeCordovaNativePlugin {
|
||||
/**
|
||||
* Use selection feedback generators to indicate a change in selection.
|
||||
*
|
||||
* @returns {Promise<any>} Returns a promise that resolves on success and rejects on error
|
||||
*/
|
||||
@Cordova()
|
||||
@@ -44,6 +44,7 @@ export class TapticEngine extends AwesomeCordovaNativePlugin {
|
||||
|
||||
/**
|
||||
* Use this to indicate success/failure/warning to the user.
|
||||
*
|
||||
* @param options {Object} should be of the type { type: 'success' } (or 'warning'/'error')
|
||||
* @param {'success' | 'warning' | 'error'} options.type
|
||||
* @returns {Promise<any>} Returns a promise that resolves on success and rejects on error
|
||||
@@ -55,8 +56,10 @@ export class TapticEngine extends AwesomeCordovaNativePlugin {
|
||||
|
||||
/**
|
||||
* Use this to indicate success/failure/warning to the user.
|
||||
*
|
||||
* @param options {Object} should be of the type { style: 'light' } (or 'medium'/'heavy')
|
||||
* @param {'light' | 'medium' | 'heavy'} options.type
|
||||
* @param options.style
|
||||
* @returns {Promise<any>} Returns a promise that resolves on success and rejects on error
|
||||
*/
|
||||
@Cordova()
|
||||
@@ -66,6 +69,7 @@ export class TapticEngine extends AwesomeCordovaNativePlugin {
|
||||
|
||||
/**
|
||||
* Tell the taptic engine that a gesture for a selection change is starting.
|
||||
*
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
@@ -75,6 +79,7 @@ export class TapticEngine extends AwesomeCordovaNativePlugin {
|
||||
|
||||
/**
|
||||
* Tell the taptic engine that a selection changed during a gesture.
|
||||
*
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
@@ -84,6 +89,7 @@ export class TapticEngine extends AwesomeCordovaNativePlugin {
|
||||
|
||||
/**
|
||||
* Tell the taptic engine we are done with a gesture. This needs to be called lest resources are not properly recycled.
|
||||
*
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
|
||||
Reference in New Issue
Block a user