用几个对象属性索引Map的打字稿最好的方法是什么?

时间:2016-10-04 16:50:41

标签: typescript

我需要像Using an object as a generic Dictionary key这样的东西,但对于TypeScript。

如何使用TypeScript实现此功能?

1 个答案:

答案 0 :(得分:0)

  

如何使用TypeScript实现此功能?

我过去做过这个:https://github.com/basarat/typescript-collections#a-sample-on-dictionary