0.3.0
This commit is contained in:
parent
d6cd63b201
commit
957522e4d9
10
dist/rage-rpc.d.ts
vendored
10
dist/rage-rpc.d.ts
vendored
@ -10,6 +10,16 @@ export function callBrowsers<T = any>(player: Player, name: string, args?: any,
|
||||
export function callBrowsers<T = any>(name: string, args?: any, options: CallOptions = {}): Promise<T>;
|
||||
export function callBrowser<T = any>(browser: Browser, name: string, args?: any, options: CallOptions = {}): Promise<T>;
|
||||
|
||||
export function on(name: string, cb: ProcedureListener): void;
|
||||
export function off(name: string, cb: ProcedureListener): void;
|
||||
export function trigger(name: string, args?: any): void;
|
||||
export function triggerServer(name: string, args?: any): void;
|
||||
export function triggerClient(player: Player, name: string, args?: any): void;
|
||||
export function triggerClient(name: string, args?: any): void;
|
||||
export function triggerBrowsers(player: Player, name: string, args?: any): void;
|
||||
export function triggerBrowsers(name: string, args?: any): void;
|
||||
export function triggerBrowser(browser: Browser, name: string, args?: any): void;
|
||||
|
||||
export interface Player {
|
||||
call: (eventName: string, args?: any[]) => void;
|
||||
[property: string]: any;
|
||||
|
136
dist/rage-rpc.min.js
vendored
136
dist/rage-rpc.min.js
vendored
File diff suppressed because one or more lines are too long
1154
package-lock.json
generated
1154
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
14
package.json
14
package.json
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "rage-rpc",
|
||||
"version": "0.2.1",
|
||||
"version": "0.3.0",
|
||||
"description": "An asynchronous RPC implementation for RAGE Multiplayer",
|
||||
"main": "dist/rage-rpc.min.js",
|
||||
"types": "dist/rage-rpc.d.ts",
|
||||
@ -24,13 +24,13 @@
|
||||
"homepage": "https://github.com/micaww/rage-rpc#readme",
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.3.4",
|
||||
"@babel/preset-env": "^7.3.4",
|
||||
"@babel/core": "^7.4.5",
|
||||
"@babel/preset-env": "^7.4.5",
|
||||
"@babel/preset-typescript": "^7.3.3",
|
||||
"babel-loader": "^8.0.5",
|
||||
"babel-loader": "^8.0.6",
|
||||
"replace-in-file-webpack-plugin": "^1.0.6",
|
||||
"typescript": "^3.3.3333",
|
||||
"webpack": "^4.29.6",
|
||||
"webpack-cli": "^3.2.3"
|
||||
"typescript": "^3.5.1",
|
||||
"webpack": "^4.32.2",
|
||||
"webpack-cli": "^3.3.2"
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user