postgraphile-plugin-connection-filter
Version:
Filtering on PostGraphile connections
16 lines • 583 B
JavaScript
;
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