Skip to content

Commit

Permalink
typings: Suppress client errors
Browse files Browse the repository at this point in the history
  • Loading branch information
xLuxy committed Oct 21, 2023
1 parent 6cd6b75 commit 9a890fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions types/client/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,7 @@ declare module "@altv/client" {
streamingDistance?: number; // default: 0
}

// @ts-expect-error - Suppress "Class static side 'typeof LocalObject' incorrectly extends base class static side 'typeof Object'.""
export abstract class LocalObject extends Object {
get model(): number;
set model(value: number | string);
Expand Down Expand Up @@ -636,6 +637,7 @@ declare module "@altv/client" {
streamingDistance?: number; // default: 0
}

// @ts-expect-error Suppress "Class static side 'typeof LocalPed' incorrectly extends base class static side 'typeof Ped'."
export abstract class LocalPed extends Ped {
get model(): number;
set model(value: number | string);
Expand All @@ -659,6 +661,7 @@ declare module "@altv/client" {
static getFactory<T extends LocalPed>(): T;
}

// @ts-expect-error Suppress "Class static side 'typeof LocalPlayer' incorrectly extends base class static side 'typeof Player'."
export abstract class LocalPlayer extends Player {
readonly currentAmmo: number;
stamina: number;
Expand All @@ -683,6 +686,7 @@ declare module "@altv/client" {
streamingDistance?: number; // default: 300
}

// @ts-expect-error Supress "Class static side 'typeof LocalVehicle' incorrectly extends base class static side 'typeof Vehicle'.""
export abstract class LocalVehicle extends Vehicle {
get model(): number;
set model(value: number | string);
Expand Down
2 changes: 1 addition & 1 deletion types/client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@altv/client",
"version": "0.0.4",
"version": "0.0.5",
"description": "This package contains the type definitions for the alt:V JS module v2 client types",
"types": "index.d.ts",
"files": [
Expand Down

0 comments on commit 9a890fc

Please sign in to comment.