Skip to content

Commit

Permalink
server: Fix BaseObject.getByID() return type
Browse files Browse the repository at this point in the history
  • Loading branch information
xLuxy committed Oct 3, 2023
1 parent 0722465 commit d6b9eb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<K extends shared.ExtractStringKeys<ICustomBaseObjectMeta>>(key: K): void;
Expand Down

0 comments on commit d6b9eb3

Please sign in to comment.