UNPKG

ts-ioc-container

Version:

Fast, lightweight TypeScript dependency injection container with a clean API, scoped lifecycles, decorators, tokens, hooks, lazy injection, customizable providers, and no global container objects.

10 lines (9 loc) 353 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.pipe = pipe; // Implementation // eslint-disable-next-line @typescript-eslint/no-explicit-any function pipe(...mappers) { // eslint-disable-next-line @typescript-eslint/no-explicit-any return (value) => mappers.reduce((acc, current) => current(acc), value); }