Skip to content

Commit c9f9d42

Browse files
heydaridevelopermohammad heidary
and
mohammad heidary
authored
Fix/types (#20)
* fix: change gitatributes to lf for windows endline * fix: AnyValue is undefined Co-authored-by: mohammad heidary <[email protected]>
1 parent a2f3a91 commit c9f9d42

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.gitattributes

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# Auto detect text files and perform LF normalization
2-
* text=auto
1+
# Auto detect text files and perform LF normalization
2+
* text=LF

src/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ function isTypeAny(type: true | {} | Schema) {
371371
return true;
372372
}
373373

374-
if ((type as Schema).AnyValue) {
374+
if (!type || (type as Schema).AnyValue) {
375375
return true;
376376
}
377377

0 commit comments

Comments
 (0)