upd (fw):

- fixed inconsistent rpc build
- changed project-wide naming convention to prefix with "FW_" instead of "RageFW_"
This commit is contained in:
2025-01-30 19:40:09 +00:00
parent 7a37aa390e
commit edafb5289e
29 changed files with 248 additions and 287 deletions
+1 -18
View File
@@ -1,25 +1,8 @@
export {}
interface Mp {
trigger(event: string, data?: any): void
events: {
add(event: string, data: any): void
call(event: string, data: any): void
callRemote(event: string, data: any): void
remove(event: string): void
}
joaat?: unknown
game: {
joaat?: unknown
}
console: {
logInfo: (...args: unknown[]) => void
}
}
declare var global: Record<string, (...args: any[]) => unknown>
declare global {
const mp: Mp
const global: Record<string, (...args: any[]) => unknown>
interface Window {
[p: string]: any
}
+5 -2
View File
@@ -2,8 +2,11 @@
"private": false,
"name": "@entityseven/rage-fw-rpc",
"version": "0.2.5",
"main": "dist/index.js",
"types": "dist/src/index.d.ts",
"main": "src/index.ts",
"publishConfig": {
"main": "dist/index.js",
"types": "dist/index.d.ts"
},
"scripts": {
"build": "tsup",
"start": "npx ./dist create"
+2
View File
@@ -1,3 +1,5 @@
/// <reference types="@ragempcommunity/types-cef" />
import { Wrapper } from './wrapper'
import {
Environment,
+2
View File
@@ -1,3 +1,5 @@
/// <reference types="@ragempcommunity/types-client" />
import { Wrapper } from './wrapper'
import {
Environment,
+2
View File
@@ -1,3 +1,5 @@
/// <reference types="@ragempcommunity/types-server" />
import { Wrapper } from './wrapper'
import {
type PlayerMp,
+1 -1
View File
@@ -12,7 +12,7 @@
"sourceMap": true,
},
"include": [
"./index.d.ts"
"src"
],
"extends": ["../tsconfig.ragefw.json"]
}