UNPKG

@bck-inc/nsl-core

Version:

SDK officiel pour l'API NSL (Néon Spinellia LuckyScale) - 100 % fetch natif

20 lines (19 loc) 631 B
/** * Convertit une chaîne Minecraft (§4Bonjour §rMonde) en texte coloré * lisible dans la console (ANSI). * * @param {string} str * @returns {string} */ export declare function toStyled(str: string): string; /** * Retourne : "fichier.js:ligne:col" * @param {number} depth 0 = cette fonction, 1 = appelant direct, etc. */ export declare function callerLocation(depth?: number): any; /** * Logger stylé + info « où ça a été appelé » * @param {any} text * @param {"log"|"warn"|"debug"|"error"|"trace"} type */ export declare function co(text: any, type?: "log" | "warn" | "debug" | "error" | "trace"): void;