arcticpackage
Version:
A library for making Arctic packages in typescript.
23 lines • 684 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const CallableFunction_1 = __importDefault(require("./CallableFunction"));
class ArcticFunction extends CallableFunction_1.default {
constructor(name, method) {
super(name);
this.method = method;
}
bind(instance) {
return this;
}
get arity() {
return this.method.arity;
}
call(args) {
return this.method.call(args);
}
}
exports.default = ArcticFunction;
//# sourceMappingURL=ArcticFunction.js.map