all the (un)pickles take a Uint8Array
This commit is contained in:
parent
4d17aa4f05
commit
60d451bbbe
1 changed files with 6 additions and 6 deletions
12
javascript/index.d.ts
vendored
12
javascript/index.d.ts
vendored
|
@ -29,8 +29,8 @@ declare class Account {
|
|||
remove_one_time_keys(session: Session);
|
||||
generate_fallback_key();
|
||||
fallback_key(): string;
|
||||
pickle(key: string): string;
|
||||
unpickle(key: string, pickle: string);
|
||||
pickle(key: string | Uint8Array): string;
|
||||
unpickle(key: string | Uint8Array, pickle: string);
|
||||
}
|
||||
|
||||
declare class Session {
|
||||
|
@ -64,8 +64,8 @@ declare class Utility {
|
|||
declare class InboundGroupSession {
|
||||
constructor();
|
||||
free(): void;
|
||||
pickle(key: string): string;
|
||||
unpickle(key: string, pickle: string);
|
||||
pickle(key: string | Uint8Array): string;
|
||||
unpickle(key: string | Uint8Array, pickle: string);
|
||||
create(session_key: string): string;
|
||||
import_session(session_key: string): string;
|
||||
decrypt(message: string): object;
|
||||
|
@ -77,8 +77,8 @@ declare class InboundGroupSession {
|
|||
declare class OutboundGroupSession {
|
||||
constructor();
|
||||
free(): void;
|
||||
pickle(key: string): string;
|
||||
unpickle(key: string, pickle: string);
|
||||
pickle(key: string | Uint8Array): string;
|
||||
unpickle(key: string | Uint8Array, pickle: string);
|
||||
create(): void;
|
||||
encrypt(plaintext: string): string;
|
||||
session_id(): string;
|
||||
|
|
Loading…
Reference in a new issue