如何对 TypeScript 类型参数施加约束。在 c# 中,您可以使用构造{ where T:class}?
{ where T:class}
type-constraints typescript
type-constraints ×1
typescript ×1