Skip to content

Commit

Permalink
chore(client, typings): Add missing once event typings for resourceSt…
Browse files Browse the repository at this point in the history
…art / resourceStop
  • Loading branch information
xLuxy committed Sep 20, 2024
1 parent f52687d commit df3923f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions types/client/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1855,7 +1855,9 @@ declare module "@altv/client" {

// SHARED resource events
export function onResourceStart(callback: GenericEventCallback<ResourceStartEventParameters>): altShared.Events.EventHandler;
export function onceResourceStart(callback: GenericEventCallback): altShared.Events.EventHandler;
export function onResourceStop(callback: GenericEventCallback<ResourceStopEventParameters>): altShared.Events.EventHandler;
export function onceResourceStop(callback: GenericEventCallback): altShared.Events.EventHandler;
export function onResourceError(callback: GenericEventCallback<ResourceErrorEventParameters>): altShared.Events.EventHandler;

// Custom events
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.45",
"version": "0.0.46",
"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 df3923f

Please sign in to comment.