commit 3a6549d07a07efc1b026ff8155736080c8346b2e
parent 936b2e921ed7c9e61db2272f82eb95ccac0cc212
Author: triesap <137732411+triesap@users.noreply.github.com>
Date: Fri, 23 Aug 2024 13:35:54 +0000
client: correct type names
Diffstat:
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/client/src/capacitor/share.ts b/client/src/capacitor/share.ts
@@ -1,5 +1,5 @@
import { Share } from '@capacitor/share';
-import type { ICapacitorShareOpts, IClientShare } from '../types';
+import type { IClientShare, IClientShareOpts } from '../types';
export class CapacitorClientShare implements IClientShare {
public async status(): Promise<boolean> {
@@ -12,7 +12,7 @@ export class CapacitorClientShare implements IClientShare {
};
}
- public async share(opts: ICapacitorShareOpts): Promise<void> {
+ public async share(opts: IClientShareOpts): Promise<void> {
try {
const { title, text, url, files, dialog_title: dialogTitle } = opts;
await Share.share({
diff --git a/client/src/types.ts b/client/src/types.ts
@@ -60,7 +60,7 @@ export type IClientPreferences = {
get(key: string): Promise<string | undefined>;
};
-export type ICapacitorShareOpts = {
+export type IClientShareOpts = {
title?: string;
text?: string;
url?: string;
@@ -70,7 +70,7 @@ export type ICapacitorShareOpts = {
export type IClientShare = {
status(): Promise<boolean>;
- share(opts: ICapacitorShareOpts): Promise<void>;
+ share(opts: IClientShareOpts): Promise<void>;
};
export type IClientWifiScanResult = ScanWifiResult;