I am using https://www.npmjs.com/package/recompose in my project
I need to pass a generic "T" to Table, how to change the type signature so compose<Props<T>, CompProps<T>> will be satisfied?
I have tried with no success:
export const Table<T> = ...
export const Table = compose<Props<T>, CompProps<T>>(
setDisplayName('Grid'),
injectSheet(styles)
)(TableComp);
Error I am receving is:
"Cannot find name 'T'
Since you have no type use
any:Edit: Ok with keeping type safety