feat: improve types

This commit is contained in:
Dominik Pschenitschni 2022-07-20 21:15:35 +02:00
parent 42e72d14a4
commit c9e85cb52b
No known key found for this signature in database
GPG key ID: B257AC0149F43A77
14 changed files with 52 additions and 45 deletions

View file

@ -45,8 +45,8 @@ const props = defineProps({
return false
}
const isDate = (e: any) => e instanceof Date
const isString = (e: any) => typeof e === 'string'
const isDate = (e: unknown) => e instanceof Date
const isString = (e: unknown) => typeof e === 'string'
for (const e of prop) {
if (!isDate(e) && !isString(e)) {