commit 6e691f922954225be07a8c48691cf00a9f78109c
parent 4a13a63e6f7cf52e2dd1d677ea3eae402c6e4012
Author: triesap <137732411+triesap@users.noreply.github.com>
Date: Tue, 27 Aug 2024 17:39:03 +0000
client: update type iclientpreferences
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/client/src/capacitor/share.ts b/client/src/capacitor/share.ts
@@ -12,7 +12,7 @@ export class CapacitorClientShare implements IClientShare {
};
}
- public async share(opts: IClientShareOpts): Promise<void> {
+ public async open(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
@@ -65,7 +65,7 @@ export type IClientPreferences = {
remove(key: string): Promise<boolean>;
};
-export type IClientShareOpts = {
+export type IClientShareOpenOpts = {
title?: string;
text?: string;
url?: string;
@@ -75,7 +75,7 @@ export type IClientShareOpts = {
export type IClientShare = {
status(): Promise<boolean>;
- share(opts: IClientShareOpts): Promise<void>;
+ open(opts: IClientShareOpenOpts): Promise<void>;
};
export type IClientWifiScanResult = ScanWifiResult;