Merge pull request #17 from pavel-trbv/master

+ Updated: build & d.ts (for last commit)
This commit is contained in:
Micah Allen 2019-12-26 10:25:34 -05:00 committed by GitHub
commit 6d3614df67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

4
dist/rage-rpc.d.ts vendored
View File

@ -1,6 +1,6 @@
export as namespace rpc; export as namespace rpc;
export function register(name: string, cb: ProcedureListener): void; export function register(name: string, cb: ProcedureListener): Function;
export function unregister(name: string): void; export function unregister(name: string): void;
export function call<T = any>(name: string, args?: any, options?: CallOptions): Promise<T>; export function call<T = any>(name: string, args?: any, options?: CallOptions): Promise<T>;
export function callServer<T = any>(name: string, args?: any, options?: CallOptions): Promise<T>; export function callServer<T = any>(name: string, args?: any, options?: CallOptions): Promise<T>;
@ -10,7 +10,7 @@ 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 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 callBrowser<T = any>(browser: Browser, name: string, args?: any, options?: CallOptions): Promise<T>;
export function on(name: string, cb: ProcedureListener): void; export function on(name: string, cb: ProcedureListener): Function;
export function off(name: string, cb: ProcedureListener): void; export function off(name: string, cb: ProcedureListener): void;
export function trigger(name: string, args?: any): void; export function trigger(name: string, args?: any): void;
export function triggerServer(name: string, args?: any): void; export function triggerServer(name: string, args?: any): void;

File diff suppressed because one or more lines are too long