How to make a map return a class that extends an abstract class?

后端 未结 0 800
旧时难觅i
旧时难觅i 2021-01-31 00:06

I have this code.

abstract class Parent{}

class Child1 extends Parent{}

class Child2 extends Parent{}


export const classes = new Map([
          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题