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.5.5 to 1.5.6

90

index.d.ts

@@ -292,3 +292,2 @@ declare module "alt-client" {

readonly x: number;
readonly y: number;

@@ -299,5 +298,3 @@ }

readonly x: number;
readonly y: number;
readonly z: number;

@@ -1414,2 +1411,4 @@ }

* Gets the local storage instance.
*
* @deprecated Use the static methods instead.
*/

@@ -1419,4 +1418,47 @@ public static get(): LocalStorage;

/**
* Gets the value from the specified key in the local storage.
*
* @alpha
*/
public static get(key: string): any;
/**
* Deletes the specified key from the local storage.
*
* @alpha
*/
public static delete(key: string): void;
/**
* Deletes all keys from the local storage.
*
* @alpha
*/
public static deleteAll(): void;
/**
* @remarks Alias for deleteAll.
* @alpha
*/
public static clear(): void;
/**
* Saves the changes to the disk.
*
* @alpha
*/
public static save(): void;
/**
* Sets the specified key to the specified value in the local storage.
*
* @alpha
*/
public static set(key: string, value: any): void;
/**
* Deletes the specified key from the local storage.
*
* @deprecated Use the static methods instead.
*/
public delete(key: string): void;

@@ -1426,2 +1468,4 @@

* Deletes all keys from the local storage.
*
* @deprecated Use the static methods instead.
*/

@@ -1432,2 +1476,4 @@ public deleteAll(): void;

* @remarks Alias for deleteAll.
*
* @deprecated Use the static methods instead.
*/

@@ -1438,2 +1484,4 @@ public clear(): void;

* Gets the value from the specified key in the local storage.
*
* @deprecated Use the static methods instead.
*/

@@ -1444,2 +1492,4 @@ public get(key: string): any;

* Saves the changes to the disk.
*
* @deprecated Use the static methods instead.
*/

@@ -1450,2 +1500,4 @@ public save(): void;

* Sets the specified key to the specified value in the local storage.
*
* @deprecated Use the static methods instead.
*/

@@ -1734,3 +1786,3 @@ public set(key: string, value: any): void;

*
* @returns True when alt:V client is launched with debug mode enabled.
* @returns True when the alt:V client is launched with debug mode enabled.
*/

@@ -1962,6 +2014,6 @@ export function isInDebug(): boolean;

* @param handler Handler that should be scheduled for execution.
* @param miliseconds The time, in milliseconds, between execution of specified handler.
* @param milliseconds The time, in milliseconds, between execution of specified handler.
* @returns A number representing the id value of the timer that is set. Use this value with the {@link clearInterval} function to cancel the timer.
*/
export function setInterval(handler: (...args: any[]) => void, miliseconds: number): number;
export function setInterval(handler: (...args: any[]) => void, milliseconds: number): number;

@@ -1995,6 +2047,6 @@ /**

* @param handler Handler that should be scheduled for execution.
* @param miliseconds The time, in milliseconds, before execution of specified handler.
* @param milliseconds The time, in milliseconds, before execution of specified handler.
* @returns A number representing the id value of the timer that is set. Use this value with the {@link clearTimeout} function to cancel the timer.
*/
export function setTimeout(handler: (...args: any[]) => void, miliseconds: number): number;
export function setTimeout(handler: (...args: any[]) => void, milliseconds: number): number;

@@ -2125,2 +2177,24 @@ /**

export function unloadYtyp(path: string): boolean;
/**
* Evaluates and executes the given JavaScript code.
*
* @remarks
* The code is evaluated in its own context, so it cannot access variables, functions
* etc. from the calling file.
* @param code The JavaScript code.
* @returns The exports of the evaluated module.
*
* @alpha
*/
export function evalModule(code: string): Record<string, any>;
/**
* Returns whether the specified resource exists.
*
* @param name Name of the resource.
*
* @alpha
*/
export function hasResource(name: string): boolean;
}

2

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

@@ -5,0 +5,0 @@ "types": "index.d.ts",

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