typescript 枚举
This is the second post on declaration merging in TypeScript. In the previous post, we looked at what declaration merging is and started with interfaces. In this post, we will look at how to merge enums.
这是有关TypeScript中声明合并的第二篇文章。 在上一篇文章中 ,我们研究了声明合并是什么,并从接口开始。 在本文中,我们将研究如何合并枚举。
For an introduction to Enums and why they are useful, you can read this post.
有关Enums以及它们为什么有用的介绍,您可以阅读这篇文章 。
Let’s get started: