Javascript – How to fix typescript dynamic type problem
function Middleware<T extends Function>(middleware: Array<{ funcs: Array<keyof T['prototype']>, class: T }>) { } class TestValidation { Test() { } } class FilterValidation { Filter() { } } I am defining Middleware fonkisyon and I want to use giving class functions…