UNPKG

siesta-lite

Version:

Stress-free JavaScript unit testing and functional testing tool, works in NodeJS and browsers

13 lines (8 loc) 387 B
import {Constructable, Mixin} from "../../../generic/util/Common.js"; import {CanLog} from "../../../generic/util/role/CanLog.js"; export const BrowserLogger = <T extends Constructable>(base : T) => class BrowserLogger extends CanLog<Constructable>(base) { printLn (message : string) { console.log(message) } } export type BrowserLogger = Mixin<typeof BrowserLogger>