Type Alias WrappedReader<Reader>

WrappedReader<Reader>: Reader & {
    close: Reader["close"] extends ((...args: unknown[]) => unknown)
        ? Reader["close"]
        : (() => void);
}

Type Parameters

  • Reader extends Record<string, unknown>