How to create specific instancies depends condition?

前端 未结 0 1741
暖寄归人
暖寄归人 2021-02-10 02:57

I have array of concrete instances:

export abstract class Layer {}

export class CommonLayers extends Layer {}

export class ThematicLayers extends Layer {}

let          


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