component formatting and types

This commit is contained in:
Julian Krauser 2025-02-14 13:57:55 +01:00
parent c2a7d15eeb
commit ce745c06e5
60 changed files with 464 additions and 301 deletions

View file

@ -1,6 +1,7 @@
import type Footer from "../component/globalFooter";
import type Navbar from "../component/globalNavbar";
import type SEOComponent from "../component/seoComponent";
import type BaseFile from "../component/baseFile";
import type Footer from "../component/global/footer";
import type Navbar from "../component/global/navbar";
import type SEO from "../component/global/seo";
export default interface Global {
id: number;
@ -9,7 +10,8 @@ export default interface Global {
updatedAt: string;
publishedAt: string;
locale: string;
navbar: Navbar;
footer: Footer;
SEO: SEOComponent;
logo: BaseFile;
navbar: Navbar | undefined;
footer: Footer | undefined;
SEO: SEO | undefined;
}

View file

@ -8,7 +8,6 @@ export default interface Homepage {
updatedAt: string;
publishedAt: string;
locale: string;
backdrop: BaseFile;
hide_backdrop: boolean;
backdrop: undefined | BaseFile;
content: Array<ComponentTypes>;
}