mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-17 15:23:36 +01:00
Replace typescript compiler with native tsgo compiler
This commit is contained in:
2
ts/scripts/better-blockmap.d.ts
vendored
2
ts/scripts/better-blockmap.d.ts
vendored
@@ -10,6 +10,6 @@ declare module 'better-blockmap' {
|
||||
|
||||
export class BlockMap extends Writable {
|
||||
constructor(options?: BlockMapOptions);
|
||||
compress(compression?: 'gzip' | 'deflate'): Buffer;
|
||||
compress(compression?: 'gzip' | 'deflate'): Buffer<ArrayBuffer>;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ for (const lang of REQUIRED_LANGUAGES) {
|
||||
if (lang === 'zh_TW') {
|
||||
fallbacks.unshift('zh-Hant');
|
||||
}
|
||||
let json: Buffer | undefined;
|
||||
let json: Buffer<ArrayBuffer> | undefined;
|
||||
for (const f of fallbacks) {
|
||||
try {
|
||||
json = fs.readFileSync(path.join(LOCALES_DIR, f, 'messages.json'));
|
||||
|
||||
@@ -132,7 +132,7 @@ function trayIconValueToText(
|
||||
|
||||
async function generateTrayIconImage(
|
||||
request: TrayIconImageRequest
|
||||
): Promise<Buffer> {
|
||||
): Promise<Buffer<ArrayBuffer>> {
|
||||
const variant = Variants[request.size];
|
||||
if (variant == null) {
|
||||
throw new TypeError(`Invalid variant size (${request.size})`);
|
||||
|
||||
Reference in New Issue
Block a user