A static entry class for composing function pipelines in a fluent, type-safe manner.
Enables the creation of function chains that transform an input value through a sequence of steps.
Use this class to start building a pipeline using .then(), and finalize with .build().
Example:
const pipeline = Pipe
.then((n: number) => n + 1)
.then((n) => n * 2)
.build();
pipeline(3); // 8
A static entry class for composing function pipelines in a fluent, type-safe manner. Enables the creation of function chains that transform an input value through a sequence of steps. Use this class to start building a pipeline using
.then()
, and finalize with.build()
.Example: const pipeline = Pipe .then((n: number) => n + 1) .then((n) => n * 2) .build(); pipeline(3); // 8