Skip to content

Commit 751c798

Browse files
authored
export type instead of export
Hi I am trying to use Your library with isolatedModules in my tsconfig an this gives me an warning: ``` node_modules/vue-markdown-render/src/VueMarkdown.ts:3:10 - error TS1205: Re-exporting a type when 'isolatedModules' is enabled requires using 'export type'. export { Options } from 'markdown-it' ~~~~~~~ ``` i think it should be ``` export type { Options } from 'markdown-it' ``` To provide more compatibility.
1 parent 1e6a929 commit 751c798

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/VueMarkdown.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { h, PropType, VNode, Component, defineComponent } from 'vue'
22
import MarkdownIt, { Options as MarkdownItOptions, PluginSimple } from 'markdown-it'
3-
export { Options } from 'markdown-it'
3+
export type { Options } from 'markdown-it'
44

55
const VueMarkdown: Component = defineComponent({
66
name: 'VueMarkdown',

0 commit comments

Comments
 (0)