@the-goat/core
Version:
    • 943 B
TypeScript
import { Kleur } from 'kleur';
/**
* Goat's Notification services
*/
declare class Notifier {
style: Kleur;
constructor();
/**
* Basic logging functionality
*/
log(text: string): void;
/**
* Inform user about something (hopefully interesting)
* @param {String} text - value to inform about
* @memberof Notifier
*/
info(text: string): void;
/**
* Error event logging
*/
error(error: string | {
messageFormatted: string;
}): void;
/**
* Write console messages on a single line.
*/
singleLine(text: string): void;
/**
* Get an emoji by name
*/
emoji(emoji: string): any;
/**
* Format a command to log and copy to clipboard for use
* @param {String} content
* @returns {String}
* @memberof Notifier
*/
script(content: string): string;
}
declare const notify: Notifier;
export default notify;