fix: add missing type

This commit is contained in:
Arman
2022-06-30 12:03:10 +02:00
parent cf5f39c3fb
commit a2f3c8a0e5
@@ -15,7 +15,7 @@
let showError: false | 'name' | 'email' | 'password' = false;
let errorMessage = 'Something went wrong';
let errorType: 'error' | 'warning' | 'success' = 'error';
let teamName = null;
let teamName: string = null;
function addError(location: typeof showError, message: string, type: typeof errorType) {
showError = location;