Skip to content

Commit 556d766

Browse files
committed
new type of NetworkVersion
1 parent 8730cab commit 556d766

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/config/CustomNetwork.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import { Network } from '../network/Network';
2+
import { NetworkVersion } from '../network/NetworkVersion';
23

34
export type CustomNetwork = {
45
endpoint: string;
5-
version?: 'v2' | 'v4' | 'tonapi' | 'liteclient';
6+
version?: NetworkVersion;
67
key?: string;
78
type?: Network;
89
};

src/network/NetworkVersion.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export type NetworkVersion = 'v2' | 'v4' | 'tonapi' | 'liteclient';

0 commit comments

Comments
 (0)