@mantine/core
Version:
React components library focused on usability, accessibility and developer experience
2 lines (1 loc) • 342 B
TypeScript
export declare function createUseExternalEvents<Handlers extends Record<string, (detail: any) => void>>(prefix: string): readonly [(events: Handlers) => void, <EventKey extends keyof Handlers>(event: EventKey) => (...payload: Parameters<Handlers[EventKey]>[0] extends undefined ? [undefined?] : [Parameters<Handlers[EventKey]>[0]]) => void];