Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix setupJestCanvasMock type declaration #108

Merged
merged 3 commits into from
May 18, 2023
Merged

Conversation

hrd543
Copy link
Contributor

@hrd543 hrd543 commented Apr 6, 2023

Currently, setupJestCanvasMock is typed using {}, however this causes a TypeScript error, TS1183: An implementation cannot be declared in ambient contexts.
Instead, use void as the return type to fix this error

This should fix #107

The declaration for setupJestCanvasMock included {}, so have changed to return type void instead.
This fixes error TS1183: An implementation cannot be declared in ambient contexts
Following instructions in the contrbuting.md file, I have added myself to the contributors list
@hustcc hustcc merged commit 94162b7 into hustcc:master May 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants