declare a missing type.

This commit is contained in:
fiatjaf
2026-07-17 20:55:14 -03:00
parent 05c2836218
commit c66469dc75

View File

@@ -42,7 +42,7 @@ export function* matchAll(content: string): Iterable<CustomEmojiMatch> {
/** 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,