| 36 | export type Filter = ($data: ArbitraryObject, $strings: string[], $captures: string[]) => boolean; |
| 37 | |
| 38 | export interface Subscriber { |
| 39 | /** the filter checks generated from the event registration */ |
| 40 | filters: Map<string, Filter | true>; |
| 41 | |
| 42 | /** the source (aka 'this') value that must match if the handler is tied to an object */ |
| 43 | eventSource?: WeakRef<ArbitraryObject>; |
| 44 | |
| 45 | /** the event handler function itself */ |
| 46 | handler: Callback<any>; |
| 47 | } |