fix: make web and breadcrumbs optional

This commit is contained in:
Matilda Landström
2024-06-03 13:59:24 +02:00
parent a0a4cf18cf
commit b8d540aaa1
4 changed files with 59 additions and 44 deletions

View File

@@ -5,8 +5,8 @@ import type { AllRequestResponse } from "../utils/all"
import type { Edges } from "../utils/edges"
interface MyPagesBreadcrumbs {
web: {
breadcrumbs: {
web?: {
breadcrumbs?: {
title: string
parentsConnection: Edges<{
web: {
@@ -42,9 +42,10 @@ export interface GetBreadcrumbsItems {
}
interface MyPagesBreadcrumbRefs extends System {
web: {
breadcrumbs: {
web?: {
breadcrumbs?: {
parentsConnection: Edges<System>
title: string
}
}
}