newDashboardEventPredicate()
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production.
Creates DashboardEvent predicate that test whether the provided event matches it.
export declare function newDashboardEventPredicate<T extends DashboardEvents["type"]>(eventType: T, pred?: (event: DashboardEvents & {
type: T;
}) => boolean): (event: Action) => boolean;
Parameters
Parameter | Type | Description |
|---|---|---|
eventType | T | dashboard event type |
pred | (event: DashboardEvents & { type: T; }) => boolean | (Optional) predicate to test |
Returns
(event: Action) => boolean
boolean - matches?