Skip to content

Commit

Permalink
support typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
haixuxu committed May 3, 2019
1 parent 7ef3db4 commit 8df8ea4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions mavon-editor.d.ts
@@ -0,0 +1,10 @@
import { Component } from "vue";
interface VueMavonEditor {
markdownIt: any;
mavonEditor: Component;
LeftToolbar: Component;
RightToolbar: Component;
install: (Vue: any) => any;
}
declare let editor: VueMavonEditor;
export default editor;
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -3,6 +3,7 @@
"version": "2.7.4",
"description": "Vue markdown editor",
"main": "dist/mavon-editor.js",
"types": "./mavon-editor.d.ts",
"scripts": {
"test": "echo true",
"dev": "webpack-dev-server --open --progress --config webpack/webpack.dev.js",
Expand Down

0 comments on commit 8df8ea4

Please sign in to comment.