UNPKG

@enum-plus/plugin-antd

Version:

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

35 lines 1.85 kB
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { return m[k]; } }; } Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const toFilter_1 = __importDefault(require("./toFilter")); const toMenu_1 = __importDefault(require("./toMenu")); const toSelect_1 = __importDefault(require("./toSelect")); const toValueMap_1 = __importDefault(require("./toValueMap")); __exportStar(require("./toFilter"), exports); __exportStar(require("./toMenu"), exports); __exportStar(require("./toSelect"), exports); __exportStar(require("./toValueMap"), exports); const antdPlugins = (options, Enum) => { (0, toSelect_1.default)(options === null || options === void 0 ? void 0 : options.toSelect, Enum); (0, toMenu_1.default)(options === null || options === void 0 ? void 0 : options.toMenu, Enum); (0, toFilter_1.default)(options === null || options === void 0 ? void 0 : options.toFilter, Enum); (0, toValueMap_1.default)(options === null || options === void 0 ? void 0 : options.toValueMap, Enum); }; exports.default = antdPlugins; //# sourceMappingURL=../../src/index.js.map