Skip to content

Commit b1fc7d6

Browse files
authored
Merge pull request #80 from shystruk/dev
TypeScript. Add type definitions.
2 parents e50646d + 4b22d4d commit b1fc7d6

21 files changed

+14436
-21
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ node_modules
44
coverage
55
.DS_Store
66
demo/node_modules
7+
demo-ts/node_modules

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Makes column optional. If true column value will be return
7171
Type: `Function` <br>
7272

7373
If a header name is omitted or is not the same as in config *name* headerError function will be called with arguments
74-
**headerName**
74+
**headerValue, headerName, rowNumber, columnNumber**
7575

7676
### required
7777
Type: `Boolean` <br>
@@ -92,7 +92,7 @@ If it is true all header (title) column values will be checked for uniqueness
9292
### uniqueError
9393
Type: `Function` <br>
9494

95-
If one of the header value is not unique uniqueError function will be called with argument **headerName**
95+
If one of the header value is not unique uniqueError function will be called with argument **headerName, rowNumber**
9696

9797
### validate
9898
Type: `Function` <br>

demo-ts/demo.csv

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
First Name;Last Name;Email;Password;Roles
2+
Vasyl;Stokolosa;api01@test.com;123;admin, manager
3+
Vasyl_2;Stokolosa_2;api01@test.com;123123123;admin, manager, user
4+
;Stokolosa_2;api@test;123123123;admin, manager, user

demo-ts/demo.png

46.7 KB
Loading

0 commit comments

Comments
 (0)