From 99c6938f8a9b357b016f2f810b88d172a1c34e07 Mon Sep 17 00:00:00 2001 From: wyq-mac Date: Fri, 5 Jul 2019 23:47:37 +0800 Subject: [PATCH] fix: bug #27 --- doc/UPDATELOG.md | 2 ++ index.d.ts | 4 ++++ package.json | 3 ++- 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 index.d.ts diff --git a/doc/UPDATELOG.md b/doc/UPDATELOG.md index 08f8927..75e307c 100644 --- a/doc/UPDATELOG.md +++ b/doc/UPDATELOG.md @@ -1,3 +1,5 @@ +- 2019-07-05 v0.3.0 + - 添加d.ts声明文件,修复bug [#27](https://github.com/kkfor/for-editor/issues/26) - 2019-07-03 v0.2.9 - 修复bug [#26](https://github.com/kkfor/for-editor/issues/26) - 2019-07-03 v0.2.8 diff --git a/index.d.ts b/index.d.ts new file mode 100644 index 0000000..621d5fb --- /dev/null +++ b/index.d.ts @@ -0,0 +1,4 @@ +declare module 'for-editor' { + export default class ForEditor extends React.Component { + } +} \ No newline at end of file diff --git a/package.json b/package.json index 8ef1cf7..be69f26 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "for-editor", - "version": "0.2.9", + "version": "0.3.0", "description": "react markdown editor", "main": "dist/index.js", "scripts": { @@ -27,6 +27,7 @@ }, "files": [ "dist/", + "index.d.ts", "LICENSE" ], "homepage": "https://github.com/kkfor/for-editor#readme",