Skip to content

Commit

Permalink
generic type for getVariable (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
ghosty2004 authored Nov 9, 2023
1 parent 8fc6659 commit 2e83a0c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/client/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ declare class EntityMp {
getSubmergedLevel(): number;
getType(): number;
getUprightValue(): number;
getVariable(value: string): any;
getVariable<T = any>(value: string): T | null;
getVehicleIndexFromIndex(): Handle;
getVelocity(): Vector3;
getWorldPositionOfBone(boneIndex: number): Vector3;
Expand Down Expand Up @@ -1249,7 +1249,7 @@ declare interface BlipMp {
getInfoIdType(): number;
getNextInfoId(): BlipMp;
getSprite(): number;
getVariable(value: string): any;
getVariable<T = any>(value: string): T | null;
hasVariable(value: string): boolean;
hideNumberOn(): void;
isFlashing(): boolean;
Expand Down Expand Up @@ -2995,7 +2995,7 @@ declare interface DummyEntityMp {
readonly remoteId: number;
readonly type: string;

getVariable(value: string): any;
getVariable<T = any>(value: string): T | null;
}

declare interface DummyEntityMpPool extends EntityMpPool<DummyEntityMp> {
Expand Down

0 comments on commit 2e83a0c

Please sign in to comment.