Console functions
Functions related to the console
- Source:
console.ts
print(message, status, newLine)
Print messages to the console
Parameters
- message - Message to print to the console
- Type:
string
- Type:
- status - Status of the message
- Type:
"error" | "info" | "file" | "success" | "start" | undefined
- Type:
- status - If true, prints the message on a new line
- Type:
boolean | undefined
- Type:
Example
ts
print("Starting application", "start");
print("Processing information", "info", true);
print("info.txt", "file");
print("Information processed", "success");
print("Application failed", "error", true);
Starting application...
Processing information
- info.txt
✓ Information processed
⚠ Application failed