Skip to content

Commit 3ac692a

Browse files
committed
feat(typescript类型支持): 添加ts的定义文件
1 parent 57b25fa commit 3ac692a

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

dist/we-validator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
* we-validator
3-
* version: 2.1.12
3+
* version: 2.1.14
44
* address: https://github.com/ChanceYu/we-validator#readme
55
* author: ChanceYu <i.fish@foxmail.com>
66
* license: MIT

dist/we-validator.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/wechat/js/we-validator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
* we-validator
3-
* version: 2.1.12
3+
* version: 2.1.14
44
* address: https://github.com/ChanceYu/we-validator#readme
55
* author: ChanceYu <i.fish@foxmail.com>
66
* license: MIT

lib/we-validator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
* we-validator
3-
* version: 2.1.12
3+
* version: 2.1.14
44
* address: https://github.com/ChanceYu/we-validator#readme
55
* author: ChanceYu <i.fish@foxmail.com>
66
* license: MIT

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "we-validator",
3-
"version": "2.1.12",
3+
"version": "2.1.14",
44
"description": "简单灵活的表单验证插件,支持小程序、浏览器、Nodejs",
55
"main": "lib/we-validator.js",
66
"scripts": {
@@ -9,9 +9,11 @@
99
"test": "mocha test/*.js",
1010
"prepublish": "npm run build"
1111
},
12+
"types": "./types/index.d.ts",
1213
"files": [
1314
"lib",
14-
"dist"
15+
"dist",
16+
"types"
1517
],
1618
"repository": {
1719
"type": "git",

0 commit comments

Comments
 (0)