Files
dusk/types/console/console.d.ts
T
2026-06-02 09:32:07 -05:00

28 lines
707 B
TypeScript

/**
* Copyright (c) 2026 Dominic Masters
*
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
*/
/** Interface for the in-game developer console. */
interface ConsoleNamespace {
/**
* Prints one or more values to the in-game console, separated by tabs.
* Each argument is coerced to a string before printing.
*
* @example
* Console.print("x =", player.x, "y =", player.y);
*/
print(...args: unknown[]): void;
/**
* Whether the in-game console overlay is currently visible.
* Set to `true` to show the console, `false` to hide it.
*/
visible: boolean;
}
/** In-game developer console. */
declare var Console: ConsoleNamespace;