Skip to content

Commit

Permalink
refactor(text-zoom): don't use deprecated Plugins object
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile committed Nov 7, 2024
1 parent e12dd0f commit 56b34fa
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions text-zoom/src/ios.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import { Plugins } from '@capacitor/core';

import type {
GetPreferredResult,
GetResult,
SetOptions,
TextZoomPlugin,
Expand All @@ -17,8 +14,8 @@ export class TextZoomIOS implements TextZoomPlugin {
return { value };
}

async getPreferred(): Promise<GetPreferredResult> {
return Plugins.TextZoom.getPreferred();
async getPreferred(): Promise<never> {
throw 'Native implementation will be used';
}

async set(options: SetOptions): Promise<void> {
Expand Down

0 comments on commit 56b34fa

Please sign in to comment.