UNPKG

twing

Version:

First-class Twig engine for Node.js

15 lines (14 loc) 786 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createSynchronousFunction = exports.createFunction = void 0; const callable_wrapper_1 = require("./callable-wrapper"); const createFunction = (name, callable, acceptedArguments, options = {}) => { const callableWrapper = (0, callable_wrapper_1.createCallableWrapper)(name, callable, acceptedArguments, options); return callableWrapper; }; exports.createFunction = createFunction; const createSynchronousFunction = (name, callable, acceptedArguments, options = {}) => { const callableWrapper = (0, callable_wrapper_1.createSynchronousCallableWrapper)(name, callable, acceptedArguments, options); return callableWrapper; }; exports.createSynchronousFunction = createSynchronousFunction;