From cf74a403df70af70a7d2f9a96495607e7bffef79 Mon Sep 17 00:00:00 2001 From: Andrey Romanov <64421792+quick6response@users.noreply.github.com> Date: Sat, 27 Apr 2024 23:54:49 +0300 Subject: [PATCH 1/2] fix issue 554 Add new Type response AppShare --- packages/core/src/types/data.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/core/src/types/data.ts b/packages/core/src/types/data.ts index c1ecd32..b0e266f 100644 --- a/packages/core/src/types/data.ts +++ b/packages/core/src/types/data.ts @@ -1098,6 +1098,10 @@ export type AddToProfileResponse = { visibility: 'all' | 'friends' | 'best_friends'; }; +export type AppShareResponse = { + result: LinkShareResult[] +} + /** * Map of types of request props of VK Bridge methods */ @@ -1251,7 +1255,7 @@ export type ReceiveDataMap = { VKWebAppSendToClient: { result: true }; VKWebAppSetLocation: { result: true }; VKWebAppSetViewSettings: { result: true }; - VKWebAppShare: LinkShareResult[]; + VKWebAppShare: AppShareResponse; VKWebAppShowCommunityWidgetPreviewBox: { result: true }; VKWebAppShowImages: { result: true }; VKWebAppShowInviteBox: { success: true }; From c32e1357344727610b3885d20fc5b0c7e5acb918 Mon Sep 17 00:00:00 2001 From: Andrey Romanov <64421792+quick6response@users.noreply.github.com> Date: Sat, 27 Apr 2024 23:54:49 +0300 Subject: [PATCH 2/2] fix issue 554 Add new Type response AppShare --- packages/core/src/types/data.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/core/src/types/data.ts b/packages/core/src/types/data.ts index c1ecd32..6760053 100644 --- a/packages/core/src/types/data.ts +++ b/packages/core/src/types/data.ts @@ -1098,6 +1098,10 @@ export type AddToProfileResponse = { visibility: 'all' | 'friends' | 'best_friends'; }; +export type AppShareResponse = { + result: LinkShareResult[]; +}; + /** * Map of types of request props of VK Bridge methods */ @@ -1251,7 +1255,7 @@ export type ReceiveDataMap = { VKWebAppSendToClient: { result: true }; VKWebAppSetLocation: { result: true }; VKWebAppSetViewSettings: { result: true }; - VKWebAppShare: LinkShareResult[]; + VKWebAppShare: AppShareResponse; VKWebAppShowCommunityWidgetPreviewBox: { result: true }; VKWebAppShowImages: { result: true }; VKWebAppShowInviteBox: { success: true };