@tonconnect/protocol
Advanced tools
Comparing version 0.0.12 to 0.0.13
@@ -25,3 +25,3 @@ import { CHAIN } from '../../CHAIN'; | ||
} | ||
export declare type ConnectItemReply = TonAddressItemReply | TonProofItemReply | ConnectItemReplyError; | ||
export declare type ConnectItemReply = TonAddressItemReply | TonProofItemReply; | ||
export interface TonAddressItemReply { | ||
@@ -32,3 +32,4 @@ name: 'ton_addr'; | ||
} | ||
export interface TonProofItemReply { | ||
export declare type TonProofItemReply = TonProofItemReplySuccess | TonProofItemReplyError; | ||
export interface TonProofItemReplySuccess { | ||
name: 'ton_proof'; | ||
@@ -45,3 +46,3 @@ proof: { | ||
} | ||
declare type ErrorableItemsNames = TonAddressItemReply['name']; | ||
export declare type TonProofItemReplyError = ConnectItemReplyError<TonProofItemReplySuccess['name']>; | ||
export declare enum CONNECT_ITEM_ERROR_CODES { | ||
@@ -51,4 +52,4 @@ UNKNOWN_ERROR = 0, | ||
} | ||
export declare type ConnectItemReplyError = { | ||
name: ErrorableItemsNames; | ||
export declare type ConnectItemReplyError<T> = { | ||
name: T; | ||
error: { | ||
@@ -59,2 +60,1 @@ code: CONNECT_ITEM_ERROR_CODES; | ||
}; | ||
export {}; |
{ | ||
"name": "@tonconnect/protocol", | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
35591