简体   繁体   English

如何将此接口从 C# 转换为 TypeScript?

[英]How can i convert this interface from C# to TypeScript?

It declares an interface that will recieve a generic entity and says that this generic entity is from the type BaseEntity它声明了一个将接收通用实体的接口,并说这个通用实体来自 BaseEntity 类型

public interface IBaseRepository<TEntity>
     where TEntity : BaseEntity
interface IBaseRepository<TEntity extends BaseEntity> {

}

Playground Link 游乐场链接

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM