UNPKG

@illandril/foundryvtt-types

Version:

Type definitions for the Foundry VTT client, used by Illandril's modules

10 lines (6 loc) 242 B
type SocketKey = `${'module' | 'system'}.${string}`; type Socket = { emit: <T extends object>(key: SocketKey, data: T) => Socket; on: <T extends object>(key: SocketKey, callback: (data: T) => void) => Socket; }; export default Socket;