fix typing issue

This commit is contained in:
Hayden 2022-10-31 21:40:48 -08:00
parent bb20cb8678
commit 010a15b927
No known key found for this signature in database
GPG key ID: 17CF79474E257545

View file

@ -1,5 +1,5 @@
<script setup lang="ts">
import { Detail, Details } from "~~/components/global/DetailsSection/types";
import { CustomDetail, Detail, Details } from "~~/components/global/DetailsSection/types";
import { ItemAttachment } from "~~/lib/api/types/data-contracts";
definePageMeta({
@ -70,7 +70,7 @@
);
});
const itemDetails = computed(() => {
const itemDetails = computed<Details>(() => {
return [
{
name: "Description",
@ -107,11 +107,11 @@
const url = maybeUrl(field.textValue);
if (url.isUrl) {
return {
type: "link",
name: field.name,
text: url.text,
type: "link",
href: url.url,
};
} as CustomDetail;
}
return {