fix: handle err as unknown in TS 4.4+
#697
+4
−4
Open
err as unknown in TS 4.4+
#697