Merge pull request #17847 from Demonstrandum/fix/subscriber-map-type-missing-model-field

This commit is contained in:
Ben Irvin 2023-09-04 16:14:31 +02:00 committed by GitHub
commit ae7bff1546
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,9 @@ import { Event, Action } from '../';
type SubscriberFn = (event: Event) => Promise<void> | void;
type SubscriberMap = {
[k in Action]: SubscriberFn;
models?: string[];
} & {
[k in Action]?: SubscriberFn;
};
export type Subscriber = SubscriberFn | SubscriberMap;