@altv/types-client
Advanced tools
Comparing version 1.0.1 to 1.1.0
@@ -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 @@ |
{ | ||
"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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
29135
790
0