// type.d.ts (global scope) declare global{ interface Array{ customFunc(args)=>any; } } // type.ts Array.prototype.customFunc = (...args) => { return } PS:在这个基础上对泛型进行补充会让这更perfect
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。