UNPKG

@civet/events

Version:
9 lines (8 loc) 621 B
import { GenericDataProviderImplementation } from '@civet/core'; import { GenericEventReceiver, InferEvent, InferOptions, InferResource } from './EventReceiver'; import { EventProps } from './useEventHandler'; type EventPluginContextProps = { events?: Omit<EventProps<GenericEventReceiver, InferEvent<GenericEventReceiver>, InferResource<GenericEventReceiver>, InferOptions<GenericEventReceiver>>, 'resource'> | boolean; }; declare const eventPlugin: import('@civet/core').DataProviderPlugin<GenericDataProviderImplementation, unknown, EventPluginContextProps, unknown, unknown, unknown>; export default eventPlugin;