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.
25 lines
666 B
TypeScript
25 lines
666 B
TypeScript
1 year ago
|
import { PubkeyType, WithGroupPubkey } from 'libsession_util_nodejs';
|
||
|
|
||
|
type PrArrayMsgIds = Promise<Array<string>>;
|
||
|
|
||
|
export type DataCallArgs<T extends (args: any) => any> = Parameters<T>[0];
|
||
|
|
||
|
export type DeleteAllMessageFromSendersInConversationType = (
|
||
|
args: WithGroupPubkey & {
|
||
|
toRemove: Array<PubkeyType>;
|
||
|
}
|
||
|
) => PrArrayMsgIds;
|
||
|
|
||
|
export type DeleteAllMessageHashesInConversationType = (
|
||
|
args: WithGroupPubkey & {
|
||
|
messageHashes: Array<string>;
|
||
|
}
|
||
|
) => PrArrayMsgIds;
|
||
|
|
||
|
export type DeleteAllMessageHashesInConversationMatchingAuthorType = (
|
||
|
args: WithGroupPubkey & {
|
||
|
messageHashes: Array<string>;
|
||
|
author: PubkeyType;
|
||
|
}
|
||
|
) => PrArrayMsgIds;
|