My type definition is
type ProjectArrType = {
title: string,
description: string,
tools: { [index: number]: string }
}[];
interface ProjectType<P = {}> {
(props: P): React.ReactNode
}
My usage in the function
const Project: ProjectType<ProjectArrType> = ({ title, description, tools }) => {
//Code
}
I'm getting the error
Property 'title' does not exist on type 'ProjectArrType'.
and I'm not sure why. Maybe I'm not defining it right?