Skip to content

Commit

Permalink
publish(cef): output for 2895e08
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardssh committed Jan 24, 2022
1 parent d049b9b commit 110021c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
15 changes: 8 additions & 7 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,6 @@ interface Mp {

trigger(name: string, ...args: any[]): void;
invoke(name: string, ...args: any[]): void;

/**
* Adds browser event that can be called from client side
* @param name Event name
* @param args Event arguments
*/
add(name: string, ...args: any[]): void;
}

interface EventMpPool {
Expand All @@ -28,6 +21,14 @@ interface EventMpPool {
*
*/
callProc<T, K>(eventName: string, args: K): Promise<T>;

/**
* Adds browser event that can be called from client side
* @param name Event name
* @param args Event arguments
*/
add(name: string, ...args: any[]): void;
add(names: { [name: string]: (...args: any[]) => void }): void;
}

interface Window {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ragemp/types-cef",
"version": "1.0.2",
"version": "1.0.3",
"description": "Types definitions for RAGE:MP CEF module",
"main": "index.d.ts",
"files": [
Expand Down

0 comments on commit 110021c

Please sign in to comment.