Turn off the accepted rules and fix the design tokens, alt text, and last type errors. [skip build]
This commit is contained in:
@@ -25,7 +25,7 @@ const TRANSPARENT_COLOR = 0xff00ff;
|
||||
* @returns The Lottie animation JSON object
|
||||
*/
|
||||
function decompressTgs(tgsData: ArrayBuffer): object {
|
||||
const decompressed = inflate(new Uint8Array(tgsData), { to: 'string' });
|
||||
const decompressed = inflate(new Uint8Array(tgsData), { toText: true });
|
||||
return JSON.parse(decompressed);
|
||||
}
|
||||
|
||||
@@ -82,7 +82,6 @@ async function renderLottieToGif(
|
||||
return;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
const workerScript = (GIF as any).getWorkerScript?.() || '/gif.worker.js';
|
||||
|
||||
// Initialize GIF encoder with transparency support
|
||||
@@ -236,7 +235,6 @@ export async function webmToGif(
|
||||
return;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
const workerScript = (GIF as any).getWorkerScript?.() || '/gif.worker.js';
|
||||
|
||||
// Initialize GIF encoder with transparency support
|
||||
|
||||
@@ -33,7 +33,7 @@ export type DiscordCollectibleItem = {
|
||||
};
|
||||
|
||||
export type DownloadedCollectibleAsset = DiscordCollectibleAsset & {
|
||||
data: Uint8Array;
|
||||
data: Uint8Array<ArrayBuffer>;
|
||||
};
|
||||
|
||||
const CDN_HOST_RE = /(^|\.)(discordapp\.com|discordapp\.net|discord\.com)$/i;
|
||||
|
||||
@@ -105,7 +105,7 @@ export const getThumbnailContent = (thumbnailInfo: {
|
||||
};
|
||||
|
||||
export const encryptFile = async (
|
||||
file: File | Blob,
|
||||
file: TUploadContent,
|
||||
): Promise<{
|
||||
encInfo: EncryptedAttachmentInfo;
|
||||
file: File;
|
||||
@@ -113,7 +113,7 @@ export const encryptFile = async (
|
||||
}> => {
|
||||
const dataBuffer = await file.arrayBuffer();
|
||||
const encryptedAttachment = await encryptAttachment(dataBuffer);
|
||||
const encFile = new File([encryptedAttachment.data], file.name, {
|
||||
const encFile = new File([encryptedAttachment.data], file.name ?? '', {
|
||||
type: file.type,
|
||||
});
|
||||
return {
|
||||
|
||||
@@ -298,7 +298,6 @@ export async function importTelegramStickerPack(
|
||||
// Save to user account data
|
||||
console.log('Saving merged pack to account data:', AccountDataEvent.PoniesUserEmotes);
|
||||
console.log('Merged content:', JSON.stringify(mergedContent, null, 2));
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
await mx.setAccountData(AccountDataEvent.PoniesUserEmotes as any, mergedContent as any);
|
||||
console.log('Pack saved successfully');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user