From 30ca4ac810757283103fdf9fd57f12305b48140c Mon Sep 17 00:00:00 2001 From: WelaurS Date: Wed, 28 Feb 2024 13:35:06 +0300 Subject: [PATCH] fix(shared): Added required first argument to alt.log methods (#299) --- shared/index.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/shared/index.d.ts b/shared/index.d.ts index 7e979f7d..28d6a4d8 100644 --- a/shared/index.d.ts +++ b/shared/index.d.ts @@ -2827,28 +2827,28 @@ declare module "alt-shared" { * * @remarks Uses {@link "alt-shared".Utils.inspect alt.Utils.inspect} to format values. */ - export function log(...args: any[]): void; + export function log(arg: any, ...args: any[]): void; /** * Logs the specified arguments as an error to the console. * * @remarks Uses {@link "alt-shared".Utils.inspect alt.Utils.inspect} to format values. */ - export function logError(...args: any[]): void; + export function logError(arg: any, ...args: any[]): void; /** * Logs the specified arguments as a warning to the console. * * @remarks Uses {@link "alt-shared".Utils.inspect alt.Utils.inspect} to format values. */ - export function logWarning(...args: any[]): void; + export function logWarning(arg: any, ...args: any[]): void; /** * Logs the specified arguments to the console if debug is enabled. * * @remarks Uses {@link "alt-shared".Utils.inspect alt.Utils.inspect} to format values. */ - export function logDebug(...args: any[]): void; + export function logDebug(arg: any, ...args: any[]): void; /** * Schedules execution of handler on next tick/next frame.