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.0.1 to 1.1.0

69

index.d.ts

@@ -525,2 +525,49 @@ declare module "alt-client" {

/**
* Removes the specified key.
*
* @param key The key of the value to remove.
*/
export function deleteMeta(key: string): void;
/**
* Gets a value using the specified key.
*
* @param key The key of the value to get.
* @returns Dynamic value associated with the specified key.
*/
export function getMeta(key: string): any;
/**
* Determines whether contains the specified key.
*
* @param key The key of the value to locate.
* @returns True when element associated with the specified key is stored.
*/
export function hasMeta(key: string): boolean;
/**
* Stores the given value with the specified key.
*
* @remarks The given value will be shared locally to all resources.
* @param key The key of the value to store.
*/
export function setMeta(key: string, value: any): void;
/**
* Gets a value using the specified key.
*
* @param key The key of the value to get.
* @returns Dynamic value associated with the specified key.
*/
export function getSyncedMeta(key: string): any;
/**
* Determines whether contains the specified key.
*
* @param key The key of the value to locate.
* @returns Return is dependent on whether element associated with the specified key is stored.
*/
export function hasSyncedMeta(key: string): boolean;
export function addGxtText(key: string, value: string): void;

@@ -798,3 +845,3 @@

*/
export function on(eventName: "syncedMetaChange", listener: (entity: Entity, key: string, value: any) => void): void;
export function on(eventName: "syncedMetaChange", listener: (entity: Entity, key: string, value: any, oldValue: any) => void): void;

@@ -807,6 +854,6 @@ /**

*/
export function on(eventName: "streamSyncedMetaChange", listener: (entity: Entity, key: string, value: any) => void): void;
export function on(eventName: "streamSyncedMetaChange", listener: (entity: Entity, key: string, value: any, oldValue: any) => void): void;
/**
* Subscribes to server event handler with specified listener.
* Subscribes to client event handler with specified listener.
*

@@ -816,2 +863,18 @@ * @param eventName Name of the event.

*/
export function on(eventName: "globalMetaChange", listener: (key: string, value: any, oldValue: any) => void): void;
/**
* Subscribes to client event handler with specified listener.
*
* @param eventName Name of the event.
* @param listener Listener that should be added.
*/
export function on(eventName: "globalSyncedMetaChange", listener: (key: string, value: any, oldValue: any) => void): void;
/**
* Subscribes to client event handler with specified listener.
*
* @param eventName Name of the event.
* @param listener Listener that should be added.
*/
export function onServer(eventName: string, listener: (...args: any[]) => void): void;

@@ -818,0 +881,0 @@

2

package.json
{
"name": "@altv/types-client",
"version": "1.0.1",
"version": "1.1.0",
"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