Compare commits
No commits in common. "563ef864b7ec9599506722608233d092a65ea4fb" and "821cd589d9714840b2f291bf21b11151e5b3a071" have entirely different histories.
563ef864b7
...
821cd589d9
11
biome.json
11
biome.json
@ -6,8 +6,7 @@
|
||||
"useIgnoreFile": false
|
||||
},
|
||||
"files": {
|
||||
"ignoreUnknown": false,
|
||||
"includes": ["**", "!dist/*"]
|
||||
"ignoreUnknown": false
|
||||
},
|
||||
"formatter": {
|
||||
"enabled": true
|
||||
@ -15,13 +14,7 @@
|
||||
"linter": {
|
||||
"enabled": true,
|
||||
"rules": {
|
||||
"recommended": true,
|
||||
"complexity": {
|
||||
"noBannedTypes": "info"
|
||||
},
|
||||
"suspicious": {
|
||||
"noExplicitAny": "info"
|
||||
}
|
||||
"recommended": true
|
||||
}
|
||||
},
|
||||
"javascript": {
|
||||
|
@ -1,11 +1,11 @@
|
||||
{
|
||||
"name": "@entityseven/fivem-rpc",
|
||||
"description": "FiveM RPC is an abstraction for handling events in GTA V FiveM servers in JS/TS",
|
||||
"description": "FiveM RPC is an abstraction for events in GTA V FiveM servers in JS/TS",
|
||||
"version": "0.1.0",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"main": "",
|
||||
"types": "",
|
||||
"files": [
|
||||
"dist/**/*",
|
||||
"types/**/*",
|
||||
"readme.md",
|
||||
"license.md"
|
||||
],
|
||||
@ -15,6 +15,7 @@
|
||||
"fivem",
|
||||
"gta"
|
||||
],
|
||||
"type": "module",
|
||||
"author": "Entity Seven Group",
|
||||
"contributors": [
|
||||
{
|
||||
@ -24,13 +25,6 @@
|
||||
}
|
||||
],
|
||||
"license": "Custom-Attribution-NoDerivs",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/rilaxik/fivem-rpc.git"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tsup"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@microsoft/api-extractor": "^7.47.9",
|
||||
"@citizenfx/client": "^2.0.15015-1",
|
||||
|
@ -1,3 +1,5 @@
|
||||
/// <reference types="@citizenfx/client" />
|
||||
|
||||
import type * as s from '@entityseven/fivem-rpc-shared-types'
|
||||
import { Emitter } from '../utils/emitter'
|
||||
import { generateUUID, parse, stringify, stringifyWeb } from '../utils/funcs'
|
||||
@ -17,20 +19,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
|
||||
|
@ -1,3 +1,5 @@
|
||||
/// <reference types="@citizenfx/server" />
|
||||
|
||||
import type * as s from '@entityseven/fivem-rpc-shared-types'
|
||||
import { Emitter } from '../utils/emitter'
|
||||
import { generateUUID, parse, stringify } from '../utils/funcs'
|
||||
@ -12,15 +14,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
|
||||
|
@ -24,10 +24,6 @@
|
||||
}
|
||||
],
|
||||
"license": "Custom-Attribution-NoDerivs",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/rilaxik/fivem-rpc.git"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"typescript": "^5"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user