forked from Mirrors/elk
chore: type
This commit is contained in:
parent
15733000a6
commit
a253a222ec
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@ import { describe, expect, it } from 'vitest'
|
|||
import { renderToString } from 'vue/server-renderer'
|
||||
import { contentToVNode } from '~/composables/content'
|
||||
|
||||
async function render(content: string, emojis?: Record<string, Emoji[]>) {
|
||||
async function render(content: string, emojis?: Record<string, Emoji>) {
|
||||
const vnode = contentToVNode(content, emojis)
|
||||
const html = (await renderToString(vnode))
|
||||
.replace(/<!--[\[\]]-->/g, '')
|
||||
|
|
Loading…
Reference in a new issue