Skip to content

Commit

Permalink
Add 2.5.0 bridge version (#273)
Browse files Browse the repository at this point in the history
  • Loading branch information
mainsmirnov authored Oct 21, 2021
1 parent 4778609 commit 245bf92
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vkontakte/vk-bridge",
"version": "2.4.9",
"version": "2.5.0",
"description": "Connects a Mini App with VK client",
"license": "MIT",
"main": "dist/index.js",
Expand Down
7 changes: 6 additions & 1 deletion src/types/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -851,6 +851,10 @@ export type CreateHashResponse = {
request_id?: string;
};

export type ChangeFragmentResponse = {
location: string;
};

/**
* Map of types of request props of VK Bridge methods
*/
Expand Down Expand Up @@ -1028,7 +1032,8 @@ export type ReceiveDataMap = {
VKWebAppLibverifyOnConfirmed: { validate_session: string; validate_token: string };
VKWebAppLibverifyOnFailed: { code: VKWebAppLibverifyOnFailedCode };
VKWebAppRetargetingPixel: { result: true };
VKWebAppCheckAllowedScopes: { result: VKWebAppCheckAllowedScopesResponseEntry[] }
VKWebAppCheckAllowedScopes: { result: VKWebAppCheckAllowedScopesResponseEntry[] };
VKWebAppChangeFragment: ChangeFragmentResponse;
};

type EventReceiveNames<T extends keyof RequestPropsMap, R extends string, F extends string> = Record<
Expand Down

0 comments on commit 245bf92

Please sign in to comment.