Skip to content

Commit

Permalink
feat(typescript类型支持): 添加ts的定义文件
Browse files Browse the repository at this point in the history
  • Loading branch information
ChanceYu committed Dec 4, 2020
1 parent 57b25fa commit 3ac692a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/we-validator.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* we-validator
* version: 2.1.12
* version: 2.1.14
* address: https://github.com/ChanceYu/we-validator#readme
* author: ChanceYu <i.fish@foxmail.com>
* license: MIT
Expand Down
2 changes: 1 addition & 1 deletion dist/we-validator.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion example/wechat/js/we-validator.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* we-validator
* version: 2.1.12
* version: 2.1.14
* address: https://github.com/ChanceYu/we-validator#readme
* author: ChanceYu <i.fish@foxmail.com>
* license: MIT
Expand Down
2 changes: 1 addition & 1 deletion lib/we-validator.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* we-validator
* version: 2.1.12
* version: 2.1.14
* address: https://github.com/ChanceYu/we-validator#readme
* author: ChanceYu <i.fish@foxmail.com>
* license: MIT
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "we-validator",
"version": "2.1.12",
"version": "2.1.14",
"description": "简单灵活的表单验证插件,支持小程序、浏览器、Nodejs",
"main": "lib/we-validator.js",
"scripts": {
Expand All @@ -9,9 +9,11 @@
"test": "mocha test/*.js",
"prepublish": "npm run build"
},
"types": "./types/index.d.ts",
"files": [
"lib",
"dist"
"dist",
"types"
],
"repository": {
"type": "git",
Expand Down

0 comments on commit 3ac692a

Please sign in to comment.