Skip to content

Commit d4a408b

Browse files
committed
fix: type annotations
1 parent 7e45645 commit d4a408b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/runtime/components/NUsersRegisterForm.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script setup lang="ts">
22
import { ref, computed, watch } from 'vue'
33
import { navigateTo } from '#app'
4-
import type { UserWithoutPassword, ModuleOptions } from 'nuxt-users/utils'
4+
import type { UserWithoutPassword, ModuleOptions, PasswordValidationResult } from 'nuxt-users/utils'
55
import { useRuntimeConfig } from '#imports'
66
import { validatePassword } from 'nuxt-users/utils'
77
@@ -38,7 +38,7 @@ const apiEndpoint = computed(() => props.apiEndpoint || `${(nuxtUsers as { apiBa
3838
const isLoading = ref(false)
3939
const error = ref('')
4040
const successMessage = ref('')
41-
const passwordValidationResult = ref<{ isValid: boolean, score: number, validations: Record<string, boolean>, feedback: string[] } | null>(null)
41+
const passwordValidationResult = ref<PasswordValidationResult | null>(null)
4242
4343
const formData = ref<RegistrationFormData>({
4444
email: '',

0 commit comments

Comments
 (0)