Archived
feat pure rpc example
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
declare module 'rage-fw-shared-types' {
|
||||
export interface RageFW_ICustomClientEvent {
|
||||
customClientEvent(greetings: string): void
|
||||
}
|
||||
|
||||
export interface RageFW_ICustomServerEvent {
|
||||
customServerEvent(greetings: string): void
|
||||
}
|
||||
|
||||
export interface RageFW_ICustomCefEvent {
|
||||
customCefEvent(greetings: string): void
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
export const events = {
|
||||
server: {
|
||||
customServerEvent: 'customServerEvent',
|
||||
},
|
||||
client: {
|
||||
cefReady: 'cefReady',
|
||||
customClientEvent: 'customClientEvent',
|
||||
},
|
||||
browser: {
|
||||
customBrowserEvent: 'customBrowserEvent',
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"name": "@rage-fw/shared",
|
||||
"description": "Shared data for Rage-FW example",
|
||||
"version": "0.1.0",
|
||||
"main": "index.ts"
|
||||
}
|
||||
Reference in New Issue
Block a user