I'm trying to grasp the meaning of T = {}
within this TypeScript interface. I've searched for documentation on this usage but haven't found anything specific. How does it differ from simply using T
?
interface CustomProps<T = {}> {
itemId: string;
id: string;
}