rage-framework-example/apps/rpc/index.d.ts
Danya H 67be91538b upd
- rpc generics
- some internal types to expose from rpc
2024-10-03 23:11:39 +01:00

23 lines
448 B
TypeScript

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
}
joaat?: unknown
game: {
joaat?: unknown
}
}
declare global {
const mp: Mp
const global: Record<string, (...args: any[]) => unknown>
interface Window {
[p: string]: any
}
}