Skip to content

Commit

Permalink
fix(shared, typings): Fix lerp method typings
Browse files Browse the repository at this point in the history
xLuxy committed Nov 26, 2023
1 parent e1586c6 commit ae64db0
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions types/shared/index.d.ts
Original file line number Diff line number Diff line change
@@ -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;
2 changes: 1 addition & 1 deletion types/shared/package.json
Original file line number Diff line number Diff line change
@@ -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": [

0 comments on commit ae64db0

Please sign in to comment.