Replace typescript compiler with native tsgo compiler

This commit is contained in:
Jamie
2026-03-17 14:38:10 -07:00
committed by GitHub
parent 3851a3905a
commit 023ae37492
207 changed files with 1819 additions and 1270 deletions

View File

@@ -23,7 +23,7 @@ type EmojiEntryType = Readonly<{
sheet: string;
}>;
type SheetCacheEntry = Map<string, Uint8Array>;
type SheetCacheEntry = Map<string, Uint8Array<ArrayBuffer>>;
export class EmojiService {
readonly #emojiMap = new Map<string, EmojiEntryType>();
@@ -83,10 +83,11 @@ export class EmojiService {
const pack = Proto.JumbomojiPack.decode(proto);
imageMap = new Map(
pack.items.map(({ name, image }) => [
name != null ? utf16ToEmoji(name) : '',
image || new Uint8Array(0),
])
pack.items.map(({ name, image }) => {
const key = name != null ? utf16ToEmoji(name) : '';
const value: Uint8Array<ArrayBuffer> = image || new Uint8Array(0);
return [key, value];
})
);
this.#sheetCache.set(sheet, imageMap);
}