Commit e9e7000
authored
Add options parameter, add
* feat: add option to ignore automatic grants
* feat: merge `transform` into `userOptions`, add overloads to allow for any parameter combination
This allows for either providing just a transform function, just an options object with an (optional) transform function, or both as separate parameters. All parameters being optional!
* feat: remove 2-parameter overload
You can now either only pass a transform function, an object with a transform function and other options, or nothing at all.
As requested in a code review.ignoreAutomaticGrants option (#11)1 parent bafb758 commit e9e7000
1 file changed
+24
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
9 | 25 | | |
10 | 26 | | |
11 | 27 | | |
| |||
45 | 61 | | |
46 | 62 | | |
47 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
48 | 68 | | |
49 | 69 | | |
50 | 70 | | |
51 | 71 | | |
52 | 72 | | |
53 | | - | |
| 73 | + | |
54 | 74 | | |
55 | 75 | | |
56 | 76 | | |
| |||
60 | 80 | | |
61 | 81 | | |
62 | 82 | | |
| 83 | + | |
| 84 | + | |
0 commit comments