如何将方法添加到基类型,比如Array?在全球模块中,这将得到认可
interface Array { remove(o): Array; }
但在哪里放实际实施?
typescript
typescript ×1