Open piscis opened 3 years ago
It helps to typecast it to a Vue constructor but it's only a temp. workaround.
....
import Vue, { VueConstructor } from 'vue';
export default defineComponent({
name: 'MarkdownViewer',
components: {
Viewer: MarkdownViewer as VueConstructor<Vue>,
},
...
It helps to typecast it to a Vue constructor but it's only a temp. workaround.
.... import Vue, { VueConstructor } from 'vue'; export default defineComponent({ name: 'MarkdownViewer', components: { Viewer: MarkdownViewer as VueConstructor<Vue>, }, ...
It's works well, thank you evey much for the reply
Hi
I noticed that updating markdown-it-vue from 1.1.5 to 1.1.6 + using typescript. we get the following error:
I think this has something todo with:
https://github.com/ravenq/markdown-it-vue/commit/986edce61a9d29e10cff9f3442a90e7ca518fce6