enum-plus
Version:
A drop-in replacement for native enum. Like native enum but much better!
95 lines (67 loc) • 2.83 kB
JavaScript
export * from "./localize-interface.js";
/**
* **EN:** Enum initialization options
*
* **CN:** 枚举初始化选项
*/
/**
* **EN:** Enum item collection interface, excluding members inherited from the array
*
* **CN:** 枚举项集合接口,不包含从数组集成的成员
*
* @template T Enum collection initialization data type | 枚举集合初始化数据的类型
*
* @interface IEnumItems
*/
/** @deprecated use `IEnumItems` instead */
// eslint-disable-next-line @typescript-eslint/no-explicit-any
// eslint-disable-next-line @typescript-eslint/no-explicit-any
// eslint-disable-next-line @typescript-eslint/no-explicit-any
// eslint-disable-next-line @typescript-eslint/no-explicit-any
// eslint-disable-next-line @typescript-eslint/no-explicit-any
// eslint-disable-next-line @typescript-eslint/no-explicit-any
// eslint-disable-next-line @typescript-eslint/no-explicit-any
// eslint-disable-next-line @typescript-eslint/no-explicit-any
// eslint-disable-next-line @typescript-eslint/no-explicit-any
// eslint-disable-next-line @typescript-eslint/no-explicit-any
// eslint-disable-next-line @typescript-eslint/no-explicit-any
// eslint-disable-next-line @typescript-eslint/no-explicit-any
// 等价于{}
/** Data structure of ant-design Select options */
/** Data structure of column filter items of ant-design Table */
/** Data structure of ant-design Menu items */
/** Enum value type, support number, string, symbol */
// eslint-disable-next-line @typescript-eslint/no-explicit-any
/** Enum key collection */
/** More options for the options method */
/** Built-in resources */
/** Infer the value type from the initialization object of the enumeration item */
/** Infer the value type from the initialization object of the enumeration collection */
// Unknown format, use key as value
/**
* **EN:** Find the key of the enumeration item by value
*
* **CN:** 通过值查找枚举项的key
*
* @template T Enum collection initialization data type | 枚举集合初始化数据的类型
* @template V Enum value type | 枚举值的类型
*/
/**
* **EN:** Find the label of the enumeration item by value
*
* **CN:** 通过值查找枚举项的label显示名称
*
* @template T Enum collection initialization data type | 枚举集合初始化数据的类型
* @template V Enum value type | 枚举值的类型
*/
/**
* **EN:** Convert an array of objects to a Map-like object, where the key is the `key` field of the
* object, and the value is the `value` field of the object
*
* **CN:** 将对象数组转换为类似Map的对象,其中key为对象的`key`字段,value为对象的`value`字段
*
* @template A Array type | 数组类型
*/
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export {};
//# sourceMappingURL=types.js.map