Skip to content

Commit

Permalink
fix: type definition of form refs are not resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
ayZagen committed May 17, 2020
1 parent 1885f9b commit 0ee27fe
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/ui/views/FillMissing.vue
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export default defineComponent({
const vm = getCurrentInstance()
const api = inject('api') as PlusAuth
const loading = ref(false)
const form = ref<InstanceType<typeof PForm>>(null as any)
const form = ref<any>(null)
return {
...reactive(props),
Expand Down
2 changes: 1 addition & 1 deletion src/ui/views/ForgotPassword.vue
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export default defineComponent({
setup(props){
const vm = getCurrentInstance()
const api = inject('api') as PlusAuth
const form = ref<InstanceType<typeof PForm>>(null as any)
const form = ref<any>(null)
const loading = ref(false)
const actionCompleted = ref(false)
Expand Down
2 changes: 1 addition & 1 deletion src/ui/views/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export default defineComponent({
setup(props){
const vm = getCurrentInstance()
const api = inject('api') as PlusAuth
const form = ref<InstanceType<typeof PForm>>(null as any)
const form = ref<any>(null)
const passwordVisible = ref(false)
const loading = ref(false)
Expand Down
2 changes: 1 addition & 1 deletion src/ui/views/Register.vue
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export default defineComponent({
setup(props){
const vm = getCurrentInstance()
const api = inject('api') as PlusAuth
const form = ref<InstanceType<typeof PForm>>(null as any)
const form = ref<any>(null)
const loading = ref(false)
return {
Expand Down
4 changes: 2 additions & 2 deletions src/ui/views/ResetPassword.vue
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ export default defineComponent({
setup(props){
const vm = getCurrentInstance()
const api = inject('api') as PlusAuth
const form = ref<InstanceType<typeof PForm>>(null as any)
const codeForm = ref<InstanceType<typeof PForm>>(null as any)
const form = ref<any>(null)
const codeForm = ref<any>(null)
const loading = ref(false)
const actionCompleted = ref(false)
const route = useRoute()
Expand Down
2 changes: 1 addition & 1 deletion src/ui/views/mfa/Email.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default defineComponent({
const api = inject('api') as PlusAuth
const code = ref<string | null>(null)
const error = ref<string>(null as any)
const form = ref<InstanceType<typeof PForm>>(null as any)
const form = ref<any>(null)
const loading = ref(false)
return {
code,
Expand Down
2 changes: 1 addition & 1 deletion src/ui/views/mfa/GA.vue
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export default {
const api = inject('api') as PlusAuth
const code = ref<string>(null as any)
const error = ref<string>(null as any)
const form = ref<InstanceType<typeof PForm>>(null as any)
const form = ref<any>(null as any)
const loading = ref<boolean>(false)
return {
Expand Down

0 comments on commit 0ee27fe

Please sign in to comment.