I have a type definition error - Type 'RowProp<RowType>' is not assignable to type 'RowProp<number>'. with the following code.
export type RowType = number | string;
export interface RowProp<T> {
id: string;
row: T;
}
export interface TableData {
id: string;
template?: (e: RowProp<RowType>) => JSX.Element;
}
const templateA = (e: RowProp<number>) => <div></div>;
const data: TableData = {
id: '1',
template: templateA
}
How can I fix this issue.