Skip to content

Commit 84e57c3

Browse files
committed
feat(rules): added new chars in predefined type names
1 parent 27a93fa commit 84e57c3

File tree

12 files changed

+4489
-1630
lines changed

12 files changed

+4489
-1630
lines changed

.husky/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx --no-install commitlint --edit ""

.husky/pre-commit

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npm run lint
5+
npm run typecheck

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@
88
/tsconfig.json
99
/examples/
1010
/test/
11+
/.husky/

CHANGES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changes Logs
22

3+
## v1.1.0
4+
5+
- Allows characters `.:-` in predefined type names.
6+
- Removed the distribution of AMD/SystemJS modules.
7+
38
## v1.0.2
49

510
- Improved the output of `$.or` and `$.and`.

docs/zh-CN/Rules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,7 @@ tgc.compile({
924924
});
925925
```
926926

927-
2. 类型名称不能为空字符串,只能包含字母、数字、下划线,且严格区分大小写。
927+
2. 类型名称不能为空字符串,只能包含字母、数字、下划线、冒号、横线、小数点,且严格区分大小写。
928928
3. 同一个类型名称不得重复定义。
929929

930930
## 4.12. `$.not` 修饰符——否定断言

0 commit comments

Comments
 (0)