如何在Typescript中模仿索引器?

时间:2017-11-01 13:34:15

标签: typescript

我想在C#Indexers等打字稿中使用Indexers。 例如,

class example {
  public this[row: number, column: number];
}

这在打字稿中是否可行?

索引者:https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/indexers/using-indexers

0 个答案:

没有答案