Files
rustycms/@types/Contentful_Navigation.ts

15 lines
468 B
TypeScript

import type { EntrySkeletonType } from "contentful";
import type { CF_Link } from "src/lib/contentful";
import type { CF_ContentType } from "src/@types/Contentful_ContentType.enum";
import type { CF_Page } from "./Contentful_Page";
export interface CF_Navigation {
name: string,
internal: string,
links: EntrySkeletonType<CF_Link, CF_Page>[]
}
export type CF_NavigationSkeleton = {
contentTypeId: CF_ContentType.navigation
fields: CF_Navigation
}