Here is a function I am using:
bind<T, K extends keyof T>(
data: T[],
bindedData: T[],
key: K,
newKey: string
) {
}
I'm trying to use two generic parameters, but my attempt here did not work:
bind<T, K extends keyof T>, <B, KB extends keyof B>(){}