MOBILE-4362 lint: Fix some linting

main
Pau Ferrer Ocaña 2023-10-18 11:42:20 +02:00
parent 32055bd8d5
commit 18ad252340
6 changed files with 4 additions and 5 deletions

View File

@ -274,7 +274,7 @@ export class AddonModImscpProvider {
* @param siteId Site ID. If not defined, current site.
* @returns Promise resolved when the WS call is successful.
*/
async logView(id: number, name?: string, siteId?: string): Promise<void> {
async logView(id: number, siteId?: string): Promise<void> {
const params: AddonModImscpViewImscpWSParams = {
imscpid: id,
};

View File

@ -104,7 +104,6 @@ export class AddonModLtiHelperProvider {
* @param courseId Course ID.
* @param module Module.
* @param ltiId LTI id.
* @param name Name of the lti.
* @param siteId Site ID. If not defined, current site.
* @returns Promise resolved when done.
*/

View File

@ -211,7 +211,7 @@ export class AddonModSurveyProvider {
* @param siteId Site ID. If not defined, current site.
* @returns Promise resolved when the WS call is successful.
*/
async logView(id: number, name?: string, siteId?: string): Promise<void> {
async logView(id: number, siteId?: string): Promise<void> {
const params: AddonModSurveyViewSurveyWSParams = {
surveyid: id,
};

View File

@ -370,7 +370,6 @@ export class CorePushNotificationsProvider {
* @param itemCategory The item category.
* @param wsName Name of the WS.
* @param data Other data to pass to the event.
* @param siteId Site ID. If not defined, current site.
* @returns Promise resolved when done. This promise is never rejected.
* @deprecated since 4.3. Use CoreAnalytics.logEvent instead.
*/
@ -396,7 +395,6 @@ export class CorePushNotificationsProvider {
* @param itemCategory The item category.
* @param wsName Name of the WS.
* @param data Other data to pass to the event.
* @param siteId Site ID. If not defined, current site.
* @returns Promise resolved when done. This promise is never rejected.
* @deprecated since 4.3. Use CoreAnalytics.logEvent instead.
*/

View File

@ -617,6 +617,7 @@ export class CoreAppProvider {
this.logger.debug(`Set navigation bar color ${color}`);
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(<any> window).StatusBar.navigationBackgroundColorByHexString(color);
}

View File

@ -105,6 +105,7 @@ export class CoreDirectivesRegistry {
* Get all directive instances and wait to be ready.
*
* @param element Root element.
* @param selector If defined, CSS Selector to wait for.
* @param directiveClass Directive class.
* @returns Promise resolved when done.
*/