我正在阅读 TS 文档,当我阅读More on Functions 时,我不明白下面的代码,如何在实际开发中使用它。有没有例子?
interface CallOrConstruct { new (s: string): Date; (n?: number): number; }
typescript
typescript ×1