Improve doc comment text
This commit is contained in:
parent
10206550d8
commit
36a9d2d454
@ -19,7 +19,7 @@ export class Client {
|
||||
*
|
||||
* Uses HTTP when the URL schema is http or https. Uses WebSockets otherwise.
|
||||
*
|
||||
* If the adaptor is not set an auto-detection is performed.
|
||||
* If the adaptor is not set an auto-detection is attempted.
|
||||
*/
|
||||
public static async connect(url: string, adaptor?: Adaptor): Promise<Client> {
|
||||
const useHttp = url.startsWith("http://") || url.startsWith("https://");
|
||||
@ -30,7 +30,7 @@ export class Client {
|
||||
/**
|
||||
* Creates a new Tendermint client given an RPC client.
|
||||
*
|
||||
* If the adaptor is not set, an auto-detection is performed.
|
||||
* If the adaptor is not set an auto-detection is attempted.
|
||||
*/
|
||||
public static async create(rpcClient: RpcClient, adaptor?: Adaptor): Promise<Client> {
|
||||
// For some very strange reason I don't understand, tests start to fail on some systems
|
||||
|
||||
4
packages/tendermint-rpc/types/client.d.ts
vendored
4
packages/tendermint-rpc/types/client.d.ts
vendored
@ -9,13 +9,13 @@ export declare class Client {
|
||||
*
|
||||
* Uses HTTP when the URL schema is http or https. Uses WebSockets otherwise.
|
||||
*
|
||||
* If the adaptor is not set an auto-detection is performed.
|
||||
* If the adaptor is not set an auto-detection is attempted.
|
||||
*/
|
||||
static connect(url: string, adaptor?: Adaptor): Promise<Client>;
|
||||
/**
|
||||
* Creates a new Tendermint client given an RPC client.
|
||||
*
|
||||
* If the adaptor is not set, an auto-detection is performed.
|
||||
* If the adaptor is not set an auto-detection is attempted.
|
||||
*/
|
||||
static create(rpcClient: RpcClient, adaptor?: Adaptor): Promise<Client>;
|
||||
private static detectVersion;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user