From c66469dc7545d1944b12a2b6ffe5ecef74c3669f Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Fri, 17 Jul 2026 20:55:14 -0300 Subject: [PATCH] declare a missing type. --- nip30.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nip30.ts b/nip30.ts index 31257ff..dffb2c9 100644 --- a/nip30.ts +++ b/nip30.ts @@ -42,7 +42,7 @@ export function* matchAll(content: string): Iterable { /** Replace all emoji shortcodes in the content. */ export function replaceAll(content: string, replacer: (match: CustomEmoji) => string): string { - return content.replaceAll(regex(), (shortcode, name) => { + return content.replaceAll(regex(), (shortcode: string, name: string) => { return replacer({ shortcode: shortcode as `:${string}:`, name,