- Upgraded
VKBridgeEvent
type for valid checking a type of event inside a subscribe handler
bridge.subscribe(event => {
if (event.detail.type === 'VKWebAppGetEmailResult') {
event.detail.data; // { email: string; sign: string; } & RequestIdProp
}
});
- Deprecated types:
RequestMethodName
in favor AnyRequestMethodName
ReceiveMethodName
in favor AnyReceiveMethodName
RequestOnlyMethodName
in favor AnyRequestOnlyMethodName
ReceiveOnlyMethodName
in favor AnyReceiveOnlyMethodName
RequestMethodNameWithProps
in favor AnyRequestMethodNameWithProps
RequestMethodNameWithoutProps
in favor AnyRequestMethodNameWithoutProps
MethodName
in favor AnyMethodName
IOMethodName
in favor AnyIOMethodName