Progmasoft Git

progmaweb

The site and account service of Progmasoft: a Next.js frontend and an ASP.NET Core API.

Clonegit clone https://git.progmasoft.com/progmaweb

Declare the props of the dated policy pages as an interface

Codacy (consistent-type-definitions) asks for an interface where an object
type is declared.
Commit
4aff4300ffeab9b667ca9ed59efc441e005c7928
Author
Leitwolf11 ·
Parents
6902f714d7d0

Files · Download .tar.gz

Changes

 apps/web/app/privacy/[version]/page.tsx  | 4 +++-
 apps/web/app/security/[version]/page.tsx | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/apps/web/app/privacy/[version]/page.tsx b/apps/web/app/privacy/[version]/page.tsx
index 32618d1..9c12767 100644
--- a/apps/web/app/privacy/[version]/page.tsx
+++ b/apps/web/app/privacy/[version]/page.tsx
@@ -6,7 +6,9 @@ import { notFound } from "next/navigation";
 import { PolicyPage, policyMetadata } from "@/components/PolicyPage";
 import { isPolicyVersion } from "@/lib/policies";
 
-type Props = { params: Promise<{ version: string }> };
+interface Props {
+  params: Promise<{ version: string }>;
+}
 
 export async function generateMetadata({ params }: Props): Promise<Metadata> {
   const { version } = await params;
diff --git a/apps/web/app/security/[version]/page.tsx b/apps/web/app/security/[version]/page.tsx
index db7d7d4..74d917e 100644
--- a/apps/web/app/security/[version]/page.tsx
+++ b/apps/web/app/security/[version]/page.tsx
@@ -6,7 +6,9 @@ import { notFound } from "next/navigation";
 import { PolicyPage, policyMetadata } from "@/components/PolicyPage";
 import { isPolicyVersion } from "@/lib/policies";
 
-type Props = { params: Promise<{ version: string }> };
+interface Props {
+  params: Promise<{ version: string }>;
+}
 
 export async function generateMetadata({ params }: Props): Promise<Metadata> {
   const { version } = await params;