Skip to content

Commit ae71eca

Browse files
committed
ts declare
1 parent d400413 commit ae71eca

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

types/index.d.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1+
export * from './markdown-it-vue'
12
import { MarkdownItVue } from './markdown-it-vue'
2-
export declare class MarkdownItVueLight extends MarkdownItVue { }
3-
4-
export default MarkdownItVue
3+
export default MarkdownItVue

types/markdown-it-vue.d.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import Vue from 'vue'
12
/**
23
* The options of MarkdownIt.
34
* https://markdown-it.github.io/markdown-it/#MarkdownIt.new
@@ -230,8 +231,13 @@ export interface MarkdownItVueOptions {
230231
image: ImageOptions
231232
}
232233

233-
export declare class MarkdownItVue {
234+
export class MarkdownItVue extends Vue {
235+
/** Install component into Vue */
236+
static install(vue: typeof Vue): void
234237
/** markdown plain text */
235238
content: string
239+
/** options for MarkdownItVue */
236240
options: MarkdownItVueOptions
237-
}
241+
}
242+
243+
export class MarkdownItVueLight extends MarkdownItVue { }

0 commit comments

Comments
 (0)