fix(types): fix types for markdown-it-emoji

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
Erik Michelson 2024-02-12 00:39:00 +01:00
parent b47d728698
commit 38e2fe24a4
2 changed files with 9 additions and 4 deletions

View file

@ -1,12 +1,12 @@
/*
* SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
* SPDX-FileCopyrightText: 2024 The HedgeDoc developers (see AUTHORS file)
*
* SPDX-License-Identifier: AGPL-3.0-only
*/
import { MarkdownRendererExtension } from '../../../components/markdown-renderer/extensions/_base-classes/markdown-renderer-extension'
import { combinedEmojiData } from './mapping'
import type MarkdownIt from 'markdown-it'
import emoji from 'markdown-it-emoji/bare'
import { bare as emoji } from 'markdown-it-emoji'
/**
* Adds support for utf-8 emojis.

View file

@ -4,9 +4,14 @@
* SPDX-License-Identifier: AGPL-3.0-only
*/
declare module 'markdown-it-emoji/bare' {
declare module 'markdown-it-emoji' {
import type MarkdownIt from 'markdown-it/lib'
import type { EmojiOptions } from './interface'
const markdownItEmoji: MarkdownIt.PluginWithOptions<EmojiOptions>
export = markdownItEmoji
const pluginVariations = {
bare: markdownItEmoji,
light: markdownItEmoji,
full: markdownItEmoji
}
export = pluginVariations
}