Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@altv/types-client

Package Overview
Dependencies
Maintainers
1
Versions
212
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@altv/types-client - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

40

index.d.ts
declare module "alt-client" {
type StatName = "stamina" | "strength" | "lung_capacity" | "wheelie_ability" | "flying_ability" | "shooting_ability" | "stealth_ability";
export interface DiscordOAuth2Token {
export interface IDiscordOAuth2Token {
readonly token: string

@@ -10,3 +10,3 @@ readonly expires: number;

export interface DiscordUser {
export interface IDiscordUser {
readonly id: string;

@@ -18,24 +18,28 @@ readonly name: string;

export interface Vector2 {
/** x component of Vector2 */
export interface IVector2 {
readonly x: number;
/** y component of Vector2 */
readonly y: number;
}
export interface IVector3 {
readonly x: number;
readonly y: number;
readonly z: number;
}
export class Vector3 {
/** x component of Vector3 */
public readonly x: number;
/** y component of Vector3 */
public readonly y: number;
/** z component of Vector3 */
public readonly z: number;
/**
* @param x An x component.
* @param y An y component.
* @param z An z component.
*/
constructor(x: number, y: number, z: number);
constructor(arr: number[]);
constructor(obj: IVector3);
}

@@ -433,3 +437,3 @@

public static getForModel(modelHash: number): HandlingData;
public static getForModel(handlingHash: number): HandlingData;
}

@@ -494,3 +498,3 @@

export class Discord {
public static readonly currentUser: DiscordUser | null;
public static readonly currentUser: IDiscordUser | null;

@@ -500,3 +504,3 @@ /**

*/
public static requestOAuth2Token(): Promise<DiscordOAuth2Token>;
public static requestOAuth2Token(): Promise<IDiscordOAuth2Token>;
}

@@ -642,3 +646,3 @@

export function getCursorPos(): Vector2;
export function getCursorPos(): IVector2;

@@ -908,3 +912,3 @@ export function getGxtText(key: string): string;

export function setCursorPos(pos: Vector2): void;
export function setCursorPos(pos: IVector2): void;

@@ -911,0 +915,0 @@ /**

{
"name": "@altv/types-client",
"version": "1.1.0",
"version": "1.1.1",
"description": "This package contains types definitions for alt:V client-side module.",

@@ -11,4 +11,4 @@ "types": "index.d.ts",

"test": "tsc",
"preversion": "npm run test",
"release": "npm version --no-git-tag-version"
"preversion": "yarn run test",
"release": "yarn version --no-git-tag-version"
},

@@ -20,5 +20,7 @@ "repository": {

"keywords": [
"altmp",
"altv",
"node",
"node-module",
"js-module",
"gta",

@@ -25,0 +27,0 @@ "gta5",

@@ -7,3 +7,6 @@ # Summary

```bash
# With npm
npm i -D @altv/types-client
# With yarn
yarn add -D @altv/types-client
```

@@ -10,0 +13,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc