type: fixing some types

This commit is contained in:
Arman
2022-06-06 16:42:15 +02:00
parent c9f1390638
commit 45616f4cbb
@@ -33,7 +33,7 @@
const getAvatar = (name: string) =>
sdkForProject.avatars.getInitials(name, 128, 128).toString();
function addError(location: false | 'name' | 'email' | 'password', message: string, type) {
function addError(location: typeof showError, message: string, type: typeof errorType) {
showError = location;
errorMessage = message;
errorType = type;