You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
session-desktop/ts/data/sharedDataTypes.ts

26 lines
833 B
TypeScript

import { PubkeyType, WithGroupPubkey } from 'libsession_util_nodejs';
export type DataCallArgs<T extends (args: any) => any> = Parameters<T>[0];
export type DeleteAllMessageFromSendersInConversationType = (
args: WithGroupPubkey & {
toRemove: Array<PubkeyType>;
signatureTimestamp: number;
}
) => Promise<{ messageHashes: Array<string> }>;
export type DeleteAllMessageHashesInConversationType = (
args: WithGroupPubkey & {
messageHashes: Array<string>;
signatureTimestamp: number;
}
) => Promise<{ messageHashes: Array<string> }>;
export type DeleteAllMessageHashesInConversationMatchingAuthorType = (
args: WithGroupPubkey & {
messageHashes: Array<string>;
author: PubkeyType;
signatureTimestamp: number;
}
) => Promise<{ msgIdsDeleted: Array<string>; msgHashesDeleted: Array<string> }>;