UNPKG

postgraphile-plugin-connection-filter

Version:
16 lines 583 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.EXPORTABLE = EXPORTABLE; function EXPORTABLE(factory, args, nameHint) { const fn = factory(...args); if (((typeof fn === "object" && fn !== null) || typeof fn === "function") && !("$exporter$factory" in fn)) { Object.defineProperties(fn, { $exporter$args: { value: args }, $exporter$factory: { value: factory }, $exporter$name: { writable: true, value: nameHint }, }); } return fn; } //# sourceMappingURL=EXPORTABLE.js.map