Fixed all type issues that were flagged in the IDE

This commit is contained in:
Francisco Gaona
2025-11-25 22:11:59 +01:00
parent 150edfaf41
commit 98a7edc665
12 changed files with 13378 additions and 298 deletions

View File

@@ -54,12 +54,12 @@ const { api } = useApi()
const appSlug = computed(() => route.params.appSlug as string)
const pageSlug = computed(() => route.params.pageSlug as string)
const pages = ref([])
const page = ref(null)
const records = ref([])
const pages = ref<any[]>([])
const page = ref<any>(null)
const records = ref<any[]>([])
const loading = ref(true)
const loadingRecords = ref(false)
const error = ref(null)
const error = ref<string | null>(null)
const fetchPage = async () => {
try {

View File

@@ -39,9 +39,9 @@ const appSlug = computed(() => route.params.appSlug as string)
const pageSlug = computed(() => route.params.pageSlug as string)
const recordId = computed(() => route.params.recordId as string)
const record = ref(null)
const record = ref<any>(null)
const loading = ref(true)
const error = ref(null)
const error = ref<string | null>(null)
const objectApiName = ref('')
const fetchRecord = async () => {

View File

@@ -45,9 +45,9 @@
const route = useRoute()
const { api } = useApi()
const app = ref(null)
const app = ref<any>(null)
const loading = ref(true)
const error = ref(null)
const error = ref<string | null>(null)
const fetchApp = async () => {
try {

View File

@@ -106,9 +106,9 @@
<script setup lang="ts">
const { api } = useApi()
const apps = ref([])
const apps = ref<any[]>([])
const loading = ref(true)
const error = ref(null)
const error = ref<string | null>(null)
const showCreateForm = ref(false)
const newApp = ref({
slug: '',

View File

@@ -53,9 +53,9 @@
const route = useRoute()
const { api } = useApi()
const object = ref(null)
const object = ref<any>(null)
const loading = ref(true)
const error = ref(null)
const error = ref<string | null>(null)
const fetchObject = async () => {
try {

View File

@@ -123,9 +123,9 @@
<script setup lang="ts">
const { api } = useApi()
const objects = ref([])
const objects = ref<any[]>([])
const loading = ref(true)
const error = ref(null)
const error = ref<string | null>(null)
const showCreateForm = ref(false)
const newObject = ref({
apiName: '',