Skip to content

v2.1.0

Compare
Choose a tag to compare
@danakt danakt released this 11 Mar 10:57
· 287 commits to master since this release
  • 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