rage-framework-example/apps/rpc/index.d.ts

23 lines
448 B
TypeScript
Raw Normal View History

export {}
2024-10-03 11:56:21 +00:00
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
}
joaat?: unknown
game: {
joaat?: unknown
}
}
declare global {
const mp: Mp
const global: Record<string, (...args: any[]) => unknown>
interface Window {
[p: string]: any
}
}