Remove Signal.Util
This commit is contained in:
parent
3a069323a4
commit
76b9d07acf
25 changed files with 132 additions and 202 deletions
47
ts/window.d.ts
vendored
47
ts/window.d.ts
vendored
|
@ -9,8 +9,6 @@ import type * as Backbone from 'backbone';
|
|||
import type PQueue from 'p-queue/dist';
|
||||
import type { assert } from 'chai';
|
||||
import type { PhoneNumber, PhoneNumberFormat } from 'google-libphonenumber';
|
||||
import type * as Registration from './util/registration';
|
||||
import type * as zkgroup from './util/zkgroup';
|
||||
|
||||
import type {
|
||||
ConversationModelCollectionType,
|
||||
|
@ -41,7 +39,7 @@ import type { createApp } from './state/roots/createApp';
|
|||
import type Data from './sql/Client';
|
||||
import type { MessageModel } from './models/messages';
|
||||
import type { ConversationModel } from './models/conversations';
|
||||
import type { BatcherType, createBatcher } from './util/batcher';
|
||||
import type { BatcherType } from './util/batcher';
|
||||
import type { ConfirmationDialog } from './components/ConfirmationDialog';
|
||||
import type { SignalProtocolStore } from './SignalProtocolStore';
|
||||
import type { SocketStatus } from './types/SocketStatus';
|
||||
|
@ -57,27 +55,7 @@ import type { IPCEventsType } from './util/createIPCEvents';
|
|||
import type { SignalContextType } from './windows/context';
|
||||
import type * as Message2 from './types/Message2';
|
||||
import type { initializeMigrations } from './signal';
|
||||
import type {
|
||||
flushMessageCounter,
|
||||
incrementMessageCounter,
|
||||
initializeMessageCounter,
|
||||
} from './util/incrementMessageCounter';
|
||||
import type { RetryPlaceholders } from './util/retryPlaceholders';
|
||||
import type { sleep } from './util/sleep';
|
||||
import type {
|
||||
queueUpdateMessage,
|
||||
saveNewMessageBatcher,
|
||||
setBatchingStrategy,
|
||||
} from './util/messageBatcher';
|
||||
import type {
|
||||
sendContentMessageToGroup,
|
||||
sendToGroup,
|
||||
} from './util/sendToGroup';
|
||||
import type * as GoogleChrome from './util/GoogleChrome';
|
||||
import type { makeLookup } from './util/makeLookup';
|
||||
import type { getStringForProfileChange } from './util/getStringForProfileChange';
|
||||
import type { deleteForEveryone } from './util/deleteForEveryone';
|
||||
import type { parseRemoteClientExpiration } from './util/parseRemoteClientExpiration';
|
||||
|
||||
export { Long } from 'long';
|
||||
|
||||
|
@ -155,27 +133,6 @@ export type SignalCoreType = {
|
|||
Address: typeof Address;
|
||||
QualifiedAddress: typeof QualifiedAddress;
|
||||
};
|
||||
Util: {
|
||||
createBatcher: typeof createBatcher;
|
||||
deleteForEveryone: typeof deleteForEveryone;
|
||||
flushMessageCounter: typeof flushMessageCounter;
|
||||
getStringForProfileChange: typeof getStringForProfileChange;
|
||||
GoogleChrome: typeof GoogleChrome;
|
||||
incrementMessageCounter: typeof incrementMessageCounter;
|
||||
initializeMessageCounter: typeof initializeMessageCounter;
|
||||
makeLookup: typeof makeLookup;
|
||||
MessageController: typeof MessageController;
|
||||
parseRemoteClientExpiration: typeof parseRemoteClientExpiration;
|
||||
queueUpdateMessage: typeof queueUpdateMessage;
|
||||
Registration: typeof Registration;
|
||||
RetryPlaceholders: typeof RetryPlaceholders;
|
||||
saveNewMessageBatcher: typeof saveNewMessageBatcher;
|
||||
sendContentMessageToGroup: typeof sendContentMessageToGroup;
|
||||
sendToGroup: typeof sendToGroup;
|
||||
setBatchingStrategy: typeof setBatchingStrategy;
|
||||
sleep: typeof sleep;
|
||||
zkgroup: typeof zkgroup;
|
||||
};
|
||||
Components: {
|
||||
ConfirmationDialog: typeof ConfirmationDialog;
|
||||
};
|
||||
|
@ -298,6 +255,8 @@ declare global {
|
|||
testUtilities: {
|
||||
onComplete: (info: unknown) => void;
|
||||
prepareTests: () => void;
|
||||
installMessageController: () => void;
|
||||
initializeMessageCounter: () => Promise<void>;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue