upd (fw):

- moved internal client events from extendable types
This commit is contained in:
Danya H 2025-01-30 19:03:30 +00:00
parent e29dc20398
commit 7a37aa390e
2 changed files with 14 additions and 7 deletions

View File

@ -3,10 +3,18 @@ import type { RageFW_ICustomClientEvent } from '@entityseven/rage-fw-shared-type
export type { RageFW_ICustomClientEvent } from '@entityseven/rage-fw-shared-types'
/**
* Union of all available client event names
* These only include custom events and some extras from RageFW
* Union of all internal client event names
* These only include internal events
*/
export type RageFW_ClientEvent = keyof RageFW_ICustomClientEvent
export type RageFW_InternalEvent = 'cefReady'
/**
* Union of all available client event names
* These only include custom events and some internals for RageFW
*/
export type RageFW_ClientEvent =
| keyof RageFW_ICustomClientEvent
| RageFW_InternalEvent
/**
* Array of arguments of event you pass as a generic

View File

@ -1,14 +1,13 @@
declare module '@entityseven/rage-fw-shared-types' {
export interface RageFW_ICustomServerEvent {
customServerEvent(arg1: string, arg2: number): boolean
// customServerEvent(arg1: string, arg2: number): boolean // example event
}
export interface RageFW_ICustomClientEvent {
cefReady(): void
customClientEvent(arg1: string, arg2: number): boolean
// customClientEvent(arg1: string, arg2: number): boolean // example event
}
export interface RageFW_ICustomBrowserEvent {
customCefEvent(arg1: string, arg2: number): boolean
// customCefEvent(arg1: string, arg2: number): boolean // example event
}
}