UNPKG

@graphql-tools/resolvers-composition

Version:

Common package containing utils and types for GraphQL tools

11 lines (10 loc) 310 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.chainFunctions = void 0; function chainFunctions(funcs) { if (funcs.length === 1) { return funcs[0]; } return funcs.reduce((a, b) => (...args) => a(b(...args))); } exports.chainFunctions = chainFunctions;