resolves #47 Co-authored-by: johba <johba@harb.eth> Reviewed-on: https://codeberg.org/johba/harb/pulls/54
20 lines
446 B
TypeScript
20 lines
446 B
TypeScript
export function info(text: string, data: unknown = null) {
|
|
if (data) {
|
|
// console.log(`%c ${text}`, 'color: #17a2b8', data);
|
|
} else {
|
|
// console.log(`%c ${text}`, 'color: #17a2b8');
|
|
}
|
|
}
|
|
|
|
export function contract(text: string, data: unknown = null) {
|
|
if (data) {
|
|
// console.log(`%c ${text}`, 'color: #8732a8', data);
|
|
} else {
|
|
// console.log(`%c ${text}`, 'color: #8732a8');
|
|
}
|
|
}
|
|
|
|
export default {
|
|
info,
|
|
contract,
|
|
};
|