*Update dist
This commit is contained in:
parent
0a6d56572b
commit
ebaa1cac25
|
@ -14,12 +14,17 @@ export declare class RpcNetwork extends Client {
|
|||
private _networkId;
|
||||
get networkId(): number;
|
||||
get ready(): Promise<ErrTuple>;
|
||||
simpleQuery(
|
||||
relay: Buffer | string,
|
||||
query: ClientRPCRequest,
|
||||
data?: object | any[],
|
||||
options?: RpcQueryOptions
|
||||
): SimpleRpcQuery;
|
||||
simpleQuery({
|
||||
relay,
|
||||
query,
|
||||
data,
|
||||
options,
|
||||
}: {
|
||||
relay?: Buffer | string;
|
||||
query: ClientRPCRequest;
|
||||
data: object | any[];
|
||||
options: RpcQueryOptions;
|
||||
}): SimpleRpcQuery;
|
||||
}
|
||||
export declare abstract class RpcQueryBase extends Client {
|
||||
protected _promise?: Promise<any>;
|
||||
|
@ -37,7 +42,7 @@ export declare abstract class RpcQueryBase extends Client {
|
|||
run(): this;
|
||||
}
|
||||
export declare class SimpleRpcQuery extends RpcQueryBase {
|
||||
protected _relay: string | Buffer;
|
||||
protected _relay?: string | Buffer;
|
||||
constructor({
|
||||
network,
|
||||
relay,
|
||||
|
@ -45,7 +50,7 @@ export declare class SimpleRpcQuery extends RpcQueryBase {
|
|||
options,
|
||||
}: {
|
||||
network: RpcNetwork;
|
||||
relay: string | Buffer;
|
||||
relay?: string | Buffer;
|
||||
query: RPCRequest;
|
||||
options: RpcQueryOptions;
|
||||
});
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,EACV,UAAU,EACV,WAAW,EACX,gBAAgB,EACjB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,MAAM,EAAW,MAAM,8BAA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CASnB;AAED,qBAAa,cAAe,SAAQ,YAAY;IAC9C,SAAS,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;gBACvB,EACV,OAAO,EACP,KAAK,EACL,KAAK,EACL,OAAO,GACR,EAAE;QACD,OAAO,EAAE,UAAU,CAAC;QACpB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QACxB,KAAK,EAAE,UAAU,CAAC;QAClB,OAAO,EAAE,eAAe,CAAC;KAC1B;IAIM,GAAG,IAAI,IAAI;CAUnB;AAED,eAAO,MAAM,YAAY,8BAA8C,CAAC"}
|
|
@ -23,7 +23,7 @@ export class RpcNetwork extends Client {
|
|||
network: this._networkId,
|
||||
});
|
||||
}
|
||||
simpleQuery(relay, query, data = {}, options = {}) {
|
||||
simpleQuery({ relay, query, data = {}, options = {}, }) {
|
||||
return new SimpleRpcQuery({
|
||||
network: this,
|
||||
relay,
|
||||
|
|
Loading…
Reference in New Issue