mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 02:44:55 +00:00
Merge pull request #17847 from Demonstrandum/fix/subscriber-map-type-missing-model-field
This commit is contained in:
commit
ae7bff1546
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user