I want to add a type for my dynamic route that I can replace with type “any” in code bellow written with Typescript .
export default async function DetailProduct({ params }: any) {
const { imageAddress, title, price } = await getProductByID(params.id);
return ...
}
Does nextjs have a type for it ? I use nextjs14