键入与 C# 9.0 中的“记录”类型等效的打字稿

时间:2021-05-25 11:22:56

标签: typescript c#-9.0 typewriter

我项目中的数据模型使用 C# 9.0 中的 "record" type。 就像这样:

public record Foo(IEnumerable<string> BarA, IEnumerable<string> BarB);

  1. 我不知道打字稿(我的前端代码)中对应模型应该使用什么类型。

  2. 下一个问题是我应该如何处理 TypeWriter 来处理这种数据类型。

非常感谢。

0 个答案:

没有答案