From d6b9eb34fce91adadd25b6f049647927820c5e7d Mon Sep 17 00:00:00 2001 From: xLuxy <67131061+xLuxy@users.noreply.github.com> Date: Tue, 3 Oct 2023 16:12:55 +0200 Subject: [PATCH] server: Fix BaseObject.getByID() return type --- server/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/index.d.ts b/server/index.d.ts index 2ff0c657..42c7e59b 100644 --- a/server/index.d.ts +++ b/server/index.d.ts @@ -689,7 +689,7 @@ declare module "alt-server" { * Gets the base object with the given type and id * @beta */ - public static getByID(type: shared.BaseObjectType, id: number): BaseObject; + public static getByID(type: shared.BaseObjectType, id: number): BaseObject | null; public deleteMeta(key: string): void; public deleteMeta>(key: K): void;