From ae64db0bd8456e994a74b61445229ecfc5798932 Mon Sep 17 00:00:00 2001 From: xLuxy <67131061+xLuxy@users.noreply.github.com> Date: Sun, 26 Nov 2023 05:39:10 +0100 Subject: [PATCH] fix(shared, typings): Fix lerp method typings --- types/shared/index.d.ts | 16 ++++++++-------- types/shared/package.json | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/types/shared/index.d.ts b/types/shared/index.d.ts index bf434623b..381262bdb 100644 --- a/types/shared/index.d.ts +++ b/types/shared/index.d.ts @@ -244,10 +244,10 @@ declare module "@altv/shared" { isInRange(range: number, xy: [number, number]): boolean; isInRange(range: number, xy: IVector2): boolean; - lerp(ratio: number, x: number, y: number, z: number): boolean; - lerp(ratio: number, other: Vector2): boolean; - lerp(ratio: number, xy: [number, number]): boolean; - lerp(ratio: number, xy: IVector2): boolean; + lerp(ratio: number, x: number, y: number, z: number): Vector2; + lerp(ratio: number, other: Vector2): Vector2; + lerp(ratio: number, xy: [number, number]): Vector2; + lerp(ratio: number, xy: IVector2): Vector2; static zero: Vector2; static one: Vector2; @@ -339,10 +339,10 @@ declare module "@altv/shared" { isInRange(range: number, xyz: [number, number, number]): boolean; isInRange(range: number, xyz: IVector3): boolean; - lerp(ratio: number, x: number, y: number, z: number): boolean; - lerp(ratio: number, other: Vector3): boolean; - lerp(ratio: number, xyz: [number, number, number]): boolean; - lerp(ratio: number, xyz: IVector3): boolean; + lerp(ratio: number, x: number, y: number, z: number): Vector3; + lerp(ratio: number, other: Vector3): Vector3; + lerp(ratio: number, xyz: [number, number, number]): Vector3; + lerp(ratio: number, xyz: IVector3): Vector3; static zero: Vector3; static one: Vector3; diff --git a/types/shared/package.json b/types/shared/package.json index be6b19c52..863874c0d 100644 --- a/types/shared/package.json +++ b/types/shared/package.json @@ -1,6 +1,6 @@ { "name": "@altv/shared", - "version": "0.0.7", + "version": "0.0.8", "description": "This package contains the type definitions for the alt:V JS module v2 shared types", "types": "index.d.ts", "files": [