1.3.0-beta.1: introduce typescript, webpack, better overall browser support, deprecate assert calls

This commit is contained in:
tiagosiebler
2020-12-13 17:19:18 +00:00
parent 6f30c2d659
commit 0606525e96
18 changed files with 3351 additions and 660 deletions

22
src/logger.ts Normal file
View File

@@ -0,0 +1,22 @@
export type LogParams = null | any;
export const DefaultLogger = {
silly: (...params: LogParams): void => {
console.log(params);
},
debug: (...params: LogParams): void => {
console.log(params);
},
notice: (...params: LogParams): void => {
console.log(params);
},
info: (...params: LogParams): void => {
console.info(params);
},
warning: (...params: LogParams): void => {
console.error(params);
},
error: (...params: LogParams): void => {
console.error(params);
}
};