template and back

This commit is contained in:
romantarkin committed 2025-01-29 15:09:27 +05:00
commit 07ef7e9b8f
3773 files changed
+422508

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
var __defProp = Object.defineProperty;
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
var __export = (target, all) => {
__markAsModule(target);
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
__export(exports, {
classToInvokable: () => classToInvokable
});
function classToInvokable(Class) {
return new Proxy(Class, {
apply(_target, _thisArg, args) {
return new Class(...args);
},
construct(_target, args) {
return new Class(...args);
}
});
}
//# sourceMappingURL=class-to-invokable.js.map