Skip to content

Commit

Permalink
fix: typescript-next: error as any
Browse files Browse the repository at this point in the history
  • Loading branch information
myNameIsDu committed Jul 31, 2021
1 parent 53b160c commit 93f0376
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/components/connect.spec.tsx
Expand Up @@ -3270,7 +3270,8 @@ describe('React', () => {
</ProviderMock>
)
return null
} catch (error) {
//@ts-ignore before typescript4.0, a catch could not have type annotations
} catch (error: any) {
return error.message
} finally {
spy.mockRestore()
Expand Down

0 comments on commit 93f0376

Please sign in to comment.