Skip to content
Snippets Groups Projects
Commit 2075ef08 authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

Fix linter errors

parent 633a0345
No related branches found
No related tags found
1 merge request!142RPC Module
......@@ -3,7 +3,9 @@ import { ChannelEventHandler } from './events/channels';
import { DMEventHandler } from './events/dm';
import { RemoteStore } from './types/collective';
import { RawCipher } from './types/index';
import { * } from './types/rpc';
import { RPCSend } from './types/rpc';
export * from './types/rpc';
export enum LogLevel {
TRACE = 0,
......@@ -143,14 +145,14 @@ export type DMClient = {
SendSilent: (pubkey: Uint8Array, dmToken: number,
cmixParams: Uint8Array) => Promise<Uint8Array>;
SendInvite: (pubkey: Uint8Array, dmToken: number,
inviteToChannelJson Uint8Array, message: string,
inviteToChannelJson: Uint8Array, message: string,
host: string,
cmixParamsJSON: Uint8Array) => Promise<Uint8Array>;
DeleteMessage: (partnerPubKeyBytes: Uint8Array, partnerToken: number,
targetMessageIdBytes: Uint8Array,
cmixParamsJSON Uint8Array) => Promise<Uint8Array>;
cmixParamsJSON: Uint8Array) => Promise<Uint8Array>;
Send: (partnerPubKeyBytes: Uint8Array, partnerToken: number,
messageType: number, plaintext Uint8Array, leaseTimeMS: number,
messageType: number, plaintext: Uint8Array, leaseTimeMS: number,
cmixParamsJSON: Uint8Array) => Promise<Uint8Array>;
}
......@@ -252,6 +254,7 @@ export type XXDKUtils = {
GetWasmSemanticVersion: () => Uint8Array;
Purge: (userPassword: string) => void;
ValidForever: () => number;
RPCSend: RPCSend;
}
export type Logger = {
......
......@@ -5,10 +5,10 @@ export enum ResponseTypes {
}
export type RPCSend(
export type RPCSend = (
cmixId: number,
recipient: Uint8Array,
pubkey: Uint8Array,
request: Uint8Array,
updateCallback: (json: Uint8Array) => void
) => Promise<Uint8Array);
updateCallback: ((json: Uint8Array) => void)
) => Promise<Uint8Array>;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment