Skip to content

Commit

Permalink
chore: constant typed
Browse files Browse the repository at this point in the history
  • Loading branch information
Yizack committed Dec 28, 2023
1 parent e42f8eb commit 0467a13
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/runtime/components/TwemojiParse.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<script setup lang="ts">
import twemoji, { type Twemoji } from '@twemoji/api'
import twemojiapi, { type Twemoji } from '@twemoji/api'
import { onMounted, ref } from 'vue'
const twemoji = twemojiapi as Twemoji
const props = defineProps({
png: {
Expand All @@ -11,7 +12,7 @@ const props = defineProps({
const twemojiParse = ref({} as HTMLElement)
onMounted(() => {
(twemoji as Twemoji).parse(twemojiParse.value, {
twemoji.parse(twemojiParse.value, {
ext: props.png ? '.png' : '.svg',
folder: props.png ? undefined : 'svg',
className: 'twemojiParse'
Expand Down

0 comments on commit 0467a13

Please sign in to comment.