fix using any type

This commit is contained in:
Chen, Tai-Lin committed 2024-03-04 23:38:18 +08:00
1 parent ddaefca5fb
commit ec63bba0fe
5 files changed
+48 -17

No files matched your search

+8 -1
View File
@@ -5,7 +5,14 @@ import Background from '../components/DynamicBackground.vue'
import { TooManyRequestsError, ValidationError } from '../utils/errors'
import { checkUsername, chooseUsername } from '../utils/auth'
async function check({ username, error }: { username: string; error: any }) {
async function check({
username,
error,
}: {
username: string
// eslint-disable-next-line no-unused-vars
error: (msg: string) => void
}) {
if (username) {
if (!isValidUsername(username)) {
error('無效的帳號名稱')