Похожие чаты

Maybe something like this? Just wondering how this will behave

when the constructor has more than 0 args 🤔

2 ответов

12 просмотров

Maybe new(...args: any):T ?

JosXa- Автор вопроса
Misael Abanto
Maybe new(...args: any):T ?

yea I tried that, but no luck. Seems the right approach is to do it with pattern matching, i.e. a class IsClass: ... with constructor that has an empty body

Похожие вопросы

Обсуждают сегодня

Карта сайта