import { Console } from "console" ; const c = global . console ; export const console = { async log ( ... args ) { c . log ( ... args ) ; } , async sql ( sql ) { c . log ( sql ) ; } , async error ( ... args ) { c . error ( ... args ) ; } , } ; export interface Console { log ( ... args ) : Promise < void > ; sql ( sql ) : Promise < void > ; error ( ... args ) : Promise < void > ; } export class Discard implements Console { async log ( ... _args ) { } async sql ( ... _args ) { } async error ( ... _args ) { } }