UNPKG

@enum-plus/plugin-antd

Version:

A plugin for enum-plus that provides functionality to bind enums to Ant Design

11 lines 358 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const toFilterPlugin = (options, Enum) => { Enum.extends({ toFilter() { return Array.from(this.items.map(({ value, label }) => ({ text: label, value }))); }, }); }; exports.default = toFilterPlugin; //# sourceMappingURL=../../src/toFilter.js.map