mirror of
https://github.com/rilaxik/fivem-rpc.git
synced 2026-09-28 01:29:13 +00:00
fix(rpc): move injected @citizenfx/* types to separate file
This commit is contained in:
@@ -18,20 +18,6 @@ import {
|
||||
} from '../utils/types'
|
||||
import { Wrapper } from './wrapper'
|
||||
|
||||
declare function onNet(eventName: string, callback: Function): void
|
||||
declare function emitNet(eventName: string, ...args: unknown[]): void
|
||||
declare function on(eventName: string, callback: Function): void
|
||||
declare function RegisterNuiCallbackType(callbackType: string): void
|
||||
declare function GetPlayerServerId(player: number): number
|
||||
declare function PlayerId(): number
|
||||
declare function SetNuiFocus(hasFocus: boolean, hasCursor: boolean): void
|
||||
declare function RegisterCommand(
|
||||
commandName: string,
|
||||
handler: Function,
|
||||
restricted: boolean,
|
||||
): void
|
||||
declare function SendNuiMessage(jsonString: string): boolean
|
||||
|
||||
export class RPCInstanceClient extends Wrapper {
|
||||
private readonly _emitterServer: Emitter
|
||||
private readonly _pendingServer: Emitter
|
||||
|
||||
@@ -13,15 +13,6 @@ import {
|
||||
} from '../utils/types'
|
||||
import { Wrapper } from './wrapper'
|
||||
|
||||
declare function onNet(eventName: string, callback: Function): void
|
||||
declare function emitNet(eventName: string, ...args: unknown[]): void
|
||||
declare function on(eventName: string, callback: Function): void
|
||||
declare function RegisterCommand(
|
||||
commandName: string,
|
||||
handler: Function,
|
||||
restricted: boolean,
|
||||
): void
|
||||
|
||||
export class RPCInstanceServer extends Wrapper {
|
||||
private readonly _emitterClient: Emitter
|
||||
private readonly _pendingClient: Emitter
|
||||
|
||||
@@ -11,12 +11,6 @@ import {
|
||||
} from '../utils/types'
|
||||
import { Wrapper } from './wrapper'
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
GetParentResourceName?: () => string
|
||||
}
|
||||
}
|
||||
|
||||
export class RPCInstanceWebview extends Wrapper {
|
||||
private readonly _emitterClient: Emitter
|
||||
private readonly _emitterServer: Emitter
|
||||
|
||||
Reference in New Issue
Block a user