/**
 * Shared types for true streaming compression.
 *
 * Kept in a dedicated base module so Node.js and browser implementations
 * don't depend on each other.
 */
export function asError(err) {
    return err instanceof Error ? err : new Error(String(err));
}
