Skip to content

Commit 93f0376

Browse files
committed
fix: typescript-next: error as any
1 parent 53b160c commit 93f0376

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/components/connect.spec.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3270,7 +3270,8 @@ describe('React', () => {
32703270
</ProviderMock>
32713271
)
32723272
return null
3273-
} catch (error) {
3273+
//@ts-ignore before typescript4.0, a catch could not have type annotations
3274+
} catch (error: any) {
32743275
return error.message
32753276
} finally {
32763277
spy.mockRestore()

0 commit comments

Comments
 (0)