Skip to content

Commit

Permalink
Type params in generateMetadata layout function
Browse files Browse the repository at this point in the history
  • Loading branch information
zackproser committed Feb 12, 2024
1 parent 2bd8fb0 commit 261fc78
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ import '@/styles/global.css'

import Script from 'next/script'

export async function generateMetadata({ params }) {
type Props = {
params: { id: string }
searchParams: { [key: string]: string | string[] | undefined }
}

export async function generateMetadata({ params }: Props) {
return {
title: {
template: '%s - AI Engineer',
Expand Down

0 comments on commit 261fc78

Please sign in to comment.