More protobufjs migration
This commit is contained in:
parent
cf06e6638e
commit
ddbbe3a6b1
70 changed files with 3967 additions and 3369 deletions
60
ts/window.d.ts
vendored
60
ts/window.d.ts
vendored
|
@ -235,7 +235,6 @@ declare global {
|
|||
};
|
||||
log: LoggerType;
|
||||
nodeSetImmediate: typeof setImmediate;
|
||||
normalizeUuids: (obj: any, paths: Array<string>, context: string) => void;
|
||||
onFullScreenChange: (fullScreen: boolean) => void;
|
||||
platform: string;
|
||||
preloadedImages: Array<WhatIsThis>;
|
||||
|
@ -311,14 +310,31 @@ declare global {
|
|||
loadPreviewData: (preview: unknown) => WhatIsThis;
|
||||
loadStickerData: (sticker: unknown) => WhatIsThis;
|
||||
readStickerData: (path: string) => Promise<ArrayBuffer>;
|
||||
deleteSticker: (path: string) => Promise<void>;
|
||||
getAbsoluteStickerPath: (path: string) => string;
|
||||
processNewEphemeralSticker: (
|
||||
stickerData: ArrayBuffer
|
||||
) => {
|
||||
path: string;
|
||||
width: number;
|
||||
height: number;
|
||||
};
|
||||
processNewSticker: (
|
||||
stickerData: ArrayBuffer
|
||||
) => {
|
||||
path: string;
|
||||
width: number;
|
||||
height: number;
|
||||
};
|
||||
copyIntoAttachmentsDirectory: (path: string) => Promise<string>;
|
||||
upgradeMessageSchema: (attributes: unknown) => WhatIsThis;
|
||||
processNewAttachment: (
|
||||
attachment: DownloadAttachmentType
|
||||
) => Promise<AttachmentType>;
|
||||
|
||||
copyIntoTempDirectory: any;
|
||||
deleteDraftFile: any;
|
||||
deleteTempFile: any;
|
||||
deleteDraftFile: (path: string) => Promise<void>;
|
||||
deleteTempFile: (path: string) => Promise<void>;
|
||||
getAbsoluteDraftPath: any;
|
||||
getAbsoluteTempPath: any;
|
||||
openFileInFolder: any;
|
||||
|
@ -327,36 +343,6 @@ declare global {
|
|||
saveAttachmentToDisk: any;
|
||||
writeNewDraftData: any;
|
||||
};
|
||||
Stickers: {
|
||||
getDataFromLink: any;
|
||||
copyStickerToAttachments: (
|
||||
packId: string,
|
||||
stickerId: number
|
||||
) => Promise<typeof window.Signal.Types.Sticker>;
|
||||
deletePackReference: (id: string, packId: string) => Promise<void>;
|
||||
downloadEphemeralPack: (packId: string, key: string) => Promise<void>;
|
||||
downloadQueuedPacks: () => void;
|
||||
downloadStickerPack: (
|
||||
id: string,
|
||||
key: string,
|
||||
options: WhatIsThis
|
||||
) => void;
|
||||
getInitialState: () => WhatIsThis;
|
||||
load: () => void;
|
||||
removeEphemeralPack: (packId: string) => Promise<void>;
|
||||
savePackMetadata: (
|
||||
packId: string,
|
||||
packKey: string,
|
||||
metadata: unknown
|
||||
) => void;
|
||||
getStickerPackStatus: (packId: string) => 'downloaded' | 'installed';
|
||||
getSticker: (
|
||||
packId: string,
|
||||
stickerId: number
|
||||
) => typeof window.Signal.Types.Sticker;
|
||||
getStickerPack: (packId: string) => WhatIsThis;
|
||||
getInstalledStickerPacks: () => WhatIsThis;
|
||||
};
|
||||
Types: {
|
||||
Attachment: {
|
||||
save: any;
|
||||
|
@ -548,6 +534,8 @@ declare global {
|
|||
// eslint-disable-next-line no-restricted-syntax
|
||||
interface Error {
|
||||
originalError?: Event;
|
||||
reason?: any;
|
||||
stackForLog?: string;
|
||||
}
|
||||
|
||||
// Uint8Array and ArrayBuffer are type-compatible in TypeScript's covariant
|
||||
|
@ -702,7 +690,11 @@ export type WhisperType = {
|
|||
TapToViewMessagesListener: WhatIsThis;
|
||||
|
||||
deliveryReceiptQueue: PQueue<WhatIsThis>;
|
||||
deliveryReceiptBatcher: BatcherType<WhatIsThis>;
|
||||
deliveryReceiptBatcher: BatcherType<{
|
||||
source?: string;
|
||||
sourceUuid?: string;
|
||||
timestamp: number;
|
||||
}>;
|
||||
RotateSignedPreKeyListener: WhatIsThis;
|
||||
|
||||
AlreadyGroupMemberToast: typeof window.Whisper.ToastView;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue