import { _ } from "streamline-runtime" ; import { Writer } from "../writer" ; import * as generic from './generic' ; function consoleWriter ( fn ) { return generic . writer ( function ( this , _ , value ) { if ( value !== undefined ) fn ( value ) ; return this ; } ) ; } export const log = consoleWriter ( console . log ) ; export const info = consoleWriter ( console . info ) ; export const warn = consoleWriter ( console . warn ) ; export const error = consoleWriter ( console . error ) ;