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.
Typescript versions greater than 2.7.2,
keyof
producesstring|number|symbol
, failing on line 40.One fix is have on lines 19 and 22
Name extends string|number|symbol
instead ofName extends string
. But this work around may feel a bit not intuitive.Change directly on line 40,
&
withstring
does the trick of fitting types.