UNPKG

sflow

Version:

sflow is a powerful and highly-extensible library designed for processing and manipulating streams of data effortlessly. Inspired by the functional programming paradigm, it provides a rich set of utilities for transforming streams, including chunking, fil

11 lines (9 loc) 316 B
import DIE from "phpdie"; export class CacheHitError extends Error { constructor(...args: ConstructorParameters<typeof Error>) { super(...args); this.name = "CacheHitError"; } static nil: (reason: any) => PromiseLike<null> | null = (error) => error instanceof CacheHitError ? null : DIE(error); }