ts-ignore isn't included in d.ts files, so typescript versions that don't support rest elements. This works around by using sed to re-add the // @ts-ignore directive. Probably a better solution would be to use typesVersions, but as far as I can tell that would mean compiling two completely different versions of the types, which seems like overkill for this one small utility that can just use a conditional.
Fixes #250
ts-ignore isn't included in d.ts files, so typescript versions that don't support rest elements. This works around by using
sed
to re-add the// @ts-ignore
directive. Probably a better solution would be to usetypesVersions
, but as far as I can tell that would mean compiling two completely different versions of the types, which seems like overkill for this one small utility that can just use a conditional.