+
Skip to content

Commit f80f8ec

Browse files
committed
fix: add missing commas and ensure newline at end of file in emoji-related files
1 parent f47878c commit f80f8ec

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

scripts/update-emojis.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,17 @@ async function run() {
2626

2727
const typesString = `${BANNER}
2828
export type EmojiKey = ${Object.keys(emojiUrls).map((name) => `"${name}"`).join("\n | ")} | (string & {});
29-
`;
29+
`;
3030

3131
await writeFile("./src/types.ts", typesString);
3232

3333
const constantsString = `${BANNER}
3434
import type { EmojiKey } from "./types";
3535
3636
export const EMOJI_KEYS = [
37-
${Object.entries(emojiUrls).map(([name]) => `"${name}"`).join(",\n ")}
37+
${Object.entries(emojiUrls).map(([name]) => `"${name}"`).join(",\n ")},
3838
] as readonly EmojiKey[];
39-
`;
39+
`;
4040

4141
await writeFile("./src/constants.ts", constantsString);
4242

src/constants.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1939,6 +1939,5 @@ export const EMOJI_KEYS = [
19391939
"zombie",
19401940
"zombie_man",
19411941
"zombie_woman",
1942-
"zzz"
1942+
"zzz",
19431943
] as readonly EmojiKey[];
1944-

src/types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1937,4 +1937,3 @@ export type EmojiKey = "100"
19371937
| "zombie_man"
19381938
| "zombie_woman"
19391939
| "zzz" | (string & {});
1940-

0 commit comments

Comments
 (0)
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载