Commit cc15b67
authored
Type change to allow typescript > 2.7.2 (#421)
Typescript versions greater than 2.7.2, `keyof` produces `string|number|symbol`, failing on line 40.
One fix is have on lines 19 and 22 `Name extends string|number|symbol` instead of `Name extends string`. But this work around may feel a bit not intuitive.
Change directly on line 40, `&` with `string` does the trick of fitting types.1 parent c90f044 commit cc15b67
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
0 commit comments