Have FieldApi correctly typed
const MapField = <T, K extends keyof T>(_field: FieldApi<T, K, any, any, T[K]>) => { ... };
How do I fix the error with not satisfying the constraint on the generic params?
Errors go as:
"K: Type 'K' does not satisfy the constraint 'unknown extends T ? string : object ..."
"T[K]: Type 'T[K]' does not satisfy the constraint 'T extends readonly any[] ? (T extends readonly any [] ? ..."