?
не очень понимаю как правильно в данном случае сделать.
https://www.typescriptlang.org/play?ssl=15&ssc=11&pln=15&pc=25#code/C4TwDgpgBA4g9nAJgSWBAtlAvFA3gKCigEs10AuAZ2ACdiA7AcwG5CSyB9RCSgYxqq0GLfAF98+UJCgAZOLwCGwYnHr1seNgBt5guk1ZFufAdX0jRrSeGgBlCFoi9gAeTDLVAFRsaCRAG4KWgCuEHrCrOL4DGg0AGYKvHYQCjS8ABa2tEoQjCAAPJ4AfJpEjBCu7ir05FAAFKQYtZ4AlNgl9o7Obh703pCGUHEVGT3VlLV1lClp6QBqQaG1ZsJtWCUACjRw6MTThQDaALpFkRL4vFoKlJRQqBj2qRkk6GCO6BD0wLePs1k0OTy+XgSHu6BKfig5UqvQaZFqIJQZDakKINAqwRo6lRRCggRCYXYGAAdI10MTgHB-sI6i0ADRsXFQegKD61MmkzjGfgMpmWNhRIjXED0XhDEbpMaqShTGYZBYE5ZCJgoxlQdHATHqLY7PYQYnoyhwLT+CB1Y4tAViCSXa63OS8X7PYivd6fb5QJ2ZbJoIEOpTVegQtjQqX0OFNWTyAOqeiqpkarWlJl4xaEjk6Xi8lMstlE8ncmjZoj8ksSIWUEVi4bAUZVaWyp7zNNK8zx3GJrFQHW7aYGnjG03mo6WstRKTJJv9aA4ADkZNnUAAPlBZ5nZ1ZeNLgFB0AoGBpCnSinUJ+QvdO1sGiFv6NQoGZASAAGKJSk0EC1ABKTjgNEQ+QXjYdLMhAADu9RXp6cregCvoFMUJQ4DiZK1GCXrFlAma1A6GEClYN7blAly3Dgj7wa+zh-iABwTkcBGgRBJG0pEVh7gwdTzmQs4tMwQA
https://www.typescriptlang.org/play?#code/C4TwDgpgBA4g9nAJgSWBAtlAvFA3gKCigEs10AuAZ2ACdiA7AcwG5CSyB9RCSgYxqq0GLfAF98+UJCgAZOLwCGwYnHr1seNgBt5guk1ZFufAdX0jRrSeGgBlCFoi9gAeTDLVAFRsaCRAG4KWgCuEHrCrOL4DGg0AGYKvHYQCjS8ABa2tEoQjCAAPJ4AfJpEjBCu7ir05FAAFKQYtZ4AlNgl9o7Obh703pCGUHEVGT3VlLV1lClp6QBqQaG1ZsJtWCUACjRw6MTThQDaALpFkRK8WgqUlFCoGPapGSToYI7oEPTANw+zWTQ5eXy8CQd3QJT8UHKlV6DTItWBKDIbQhRBoFWCNHUKKIUECITC7AwADpGugicA4H9hHUWgAaNg4qD0BTvWqkkmcYz8emMyxsKJEK4gei8IYjdJjVSUKYzDILfHLIRMZEMqBo4AY9RbHZ7CBEtGUOBafwQOrHFr8sTnS7XWTyH5PYgvN4fL5QB2ZbJoQFyRS9ejgthQyX0WFNO1+6r0FWM9Wa0qM3GLAnsnS8HmJ5mswlkrk0DNEPmFiSCyjC0XDYCjKpSmWPebJxXmGM4uOYqDa3bTfU8I0ms1HC3FqJSZL1-rQHAAclJU6gAB8oFO01OrHFgiLelB+Ck0B6-gCQHVR7UPROWrVQR6FxHrxDeFLgENEhSaCBagAlJxwGiIfJnmxaSZCAAHd6jWEor1ldIb19D0ShwbFSUvMgPQLKA01qODoIzIs1XRdt6FA59nB-EADlHI4znwB96GoHMPWQOjgAUEVJ23NEcn3L1ciPGcyCnFpmCgAB6ESoC-DVMRuViSGY1ikigOA4luVDoJox8MPtaCmOoBT2J3LjoIPb0+JXITRPEyTNRk9QGD0tilJU7D6yAA
оу спасибо) т.е. через указание базового интерфейса никак нельзя сделать? const factory: Record<SearchType, new () =>SearchStrategy ???> = {}
Обсуждают сегодня